I am writing a RPG game and want to create a feature of 'time skipping'. For example game world could be paused by player \ admin for the some time N (month\year). After the pause the world need to respond for this skip like : players get some gold, players got healed, season should changed (summer -> fall), etc.
Which approach should I use? I have an idea to create singleton instance of WorldStats currentState and store all variables, then modify them and continue processing of this instance.
Is it the right approach or there any more suitable algorithms\ways?
Aucun commentaire:
Enregistrer un commentaire