Skip to content

Fixed the state with singleton so pause is now a state

Markus Lønnemo requested to merge game-architecture-cleanup into main

By implementing the singleton pattern in the playingstate class there is now the same instance of the game that is reloaded when the state is set to playing. When leaving the game and going back to the menu the playingstate instance is set to null to ensure a new game is started when playing again.

  • Still more to clean so will not delete branch

Merge request reports

Loading