Extend the Scene class for all of these scenes. Create a class called SceneManager , create a field for this class in your BaseGameActivity implementation. The scene manager has fields for all scenes, and you can create methods like SceneManager.getCreditsScene() , SceneManager.getMenuScene() , etc.
Thus, each scene has its own file class, while the other class care for all the scenes and the game activity itself simply calls simple methods to access these scenes.
source share