Persistent Game State and Switching Scenes – Memory Leaks and Crashing!

TitleScene

So I wanted a really cool menu scene where I have actual characters from the game and a 3D world as the backdrop.  You can see the image above for an example.  When you click New Game, the camera zooms in on a single character with the others slightly out of view on either side but still visible.  Swiping left or right takes you to the next character you can choose.  While you are on a character, you can interact with the character via normal input, switch between attack and spell phases, create a minion etc.  These characters are powered off of the same state management system that centrally controls the state of my game.  This same system also includes my event management system, which is also persistent.

Continue reading