Skip to content

Sajan-Satheesh/Chest-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chest-System

Created a Chest System of Clash Royale style. Used different programming patterns and techniques to make the Chest system scalable by increasing the chest and queue numbers and optimizing it to run smoothly.

image_001_0000

⚙️ Editor Features

  1. Can set the max chest count to fill.
  2. Can set the amount of chests that can be queued.

▶️ Executable Features

  1. Able to fill the chest to the maximum amount after any chest is removed by unlocking.
  2. Chests can be scrolled and chosen.
  3. Chests can be unlocked directly by spending coins.
  4. Also they can be opened by waiting for the required time.

✒️ Implementations.

  1. MVC (Model View Controller) pattern used for Chest implementation.
  2. Scriptable objects to set up the chest data.
  3. Implemented State Machine pattern to switch between different states like locking, unlocking, and opening of chests.
  4. Observer Pattern to update UI and update chest currency and rewards.
  5. Queue data structure to update the lists of chests.
  6. Singleton pattern to maintain different services.
  7. Prefab as a template for chests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published