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