Skip to content

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.

Notifications You must be signed in to change notification settings

tunchasan/Project-Card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published