check out my phaser/pixi based Thrust remake at Ludum Dare game jam: http://ludumdare.com/compo/2016/12/17/thrust-30/#more-601134
features music by Matt Gray.
feel free to follow, hit like, request features.
native ios version awaiting review in itunes, and android and desktop versions coming soon!
Let's say we've got and endless runner game with three states:
In menu, we have a scene that has a parallaxing background with floating buttons. When we click the "Play" button, we move to the play state... but without wiping the scene of current game objects. The player character enters from the left, running at a constant speed with the background is still parallaxing properly. On player death, we switch to the gameover state, the background stops parallaxing, and a "stats" display flies in with a "try again" button. When this button is pressed, the background seems to "rewind" all the back to the beginning, and we switch back over to the "play" state.
Be able to switch states without having to wipe all of the game objects that are still on screen and retain references to those objects.