Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 3.23 KB

README.md

File metadata and controls

62 lines (38 loc) · 3.23 KB

Project: CARD

Project: CARD is a Unity Project which provides functionality to sort playing cards such as Shuffle, Straight, Same Kind, and Smart in a very efficient way.

The project architecture is separated into three layers. The first layer is the Core, which contains the sorting algorithms and session management. The layer has been designed with pure C#, and there isn't any Unity Engine library usage in the layer.

The second layer is the Game which contains the required gameplay implementation such as Level Management, Transition, Safe Area, TransformLayout, Managers, Asset Container, and so on.

The last layer is the Test which contains unit tests with Unity Test Framework.

🛑 Important! The project's entry point is MainScene.

Optimization

The project also aims to achieve the best possible optimization. At this point;

👉 Used Sprite Atlas to reduce batch counts.

👉 Used struct class as much as possible instead of class to use stack memory and avoid heap memory usage.

👉 Less new and Instantiate keywords usages for object creation to avoid Garbage Collection.

👉 Avoided complex nested algorithms and Linq usages for efficient CPU usage.

👉 Avoided object re-instantiation and destroy, used the instantiated objects efficiently.

👉 Used String Builder for string concatenations to avoid Garbage Collection.

👇 MainScene Batch Count : 4 👇                                     👇 GameScene Batch Count : 5 👇

Techs

👉 Unity3D v2021.3.5f1 👉 C# 9.0 👉 DOTween v1.2.632 👉 TestFramework v1.1.33
👉 TextMeshPro v3.0.6 👉 SafeAreaHelper v1.0.6 👉 Memory Profiler v0.7.1-preview

Support Platforms

👉 Unity Editor 👉 IOS 👉 Android 👉 macOS 👉 Windows

Features

Scene Transition

Scene Transition

Deal Playing Cards

Deal Playing Cards

Dragging Cards

Dragging Cards

Sorting

*Sorting

Theme

Theme

Architecture

Project Card