Skip to content

A Chest System like Clash Royale with Save mechanism and can deduct time passed from last save when opening again.

Notifications You must be signed in to change notification settings

Kishore-Karic/Clash-Royale-Chest-System

Repository files navigation

Chest Royale

A Chest System like Clash Royale with Save mechanism and can deduct time passed from last save when opening again.
Gameplay Trailer
Playable Link

Important Mechanism

  • Save mechanism with JSON to Save and Load Chest.
  • Asynchronus code with Async Await for calculating Time.
  • Server Time to avoid chesting with Device time.
  • At Save take current time from Server and Save it and at Load take current time from Server and reduce it with Last Saved time to get Reamining time to calculate with Chest Unlocking time.

Game Functionality

  1. 4 different types of Chest each will have 3 tier.
  2. Each Chests with different Unlock time.
  3. Only one Chest can be Unlocking at a time.
  4. Maximum 2 Chests can be stored into Unlock queue we can edit it's limit too.
  5. If the Chest in queue is unlocked next will be automatically start unlocking.
  6. Calculating time Asynchronously using Async Await.
  7. Also can open with Gems if they meet the required Gems means.
  8. Gems can be calculated like 1 Gem for 10 minutes.
  9. All the Chests with current details and Currencies can be SAVED if only exit with Exit button.
  10. Using JSON to Save and Load from directory path.
  11. At opening time will automatically reduce time passed from last save and make Chest into next State (Unlock or Open)
  12. Calculating time from SERVER to avoid Chesting with device time, So must have INTERNET connection.
  13. Updating current status on UI like Chest status (Lock, Unlock or Open), Chest Type (Commomn, Rare, Epic or Legendary), Unlock Timer in d/h/m/s format.

Design Patterns

  • MVC for Chest.
  • Scriptable Objects to Store different Chest details.
  • Generic Singleton for Services.

Screenshots

Picture_1 Picture_2 Picture_3 Picture_4 Picture_5 Picture_6

About

A Chest System like Clash Royale with Save mechanism and can deduct time passed from last save when opening again.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published