Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Does AndEngine have a way to manage scenes (for example, main splash, menu, options, main game), and should I use a different scene per activity?

share|improve this question
add comment

3 Answers

Yes, you can separate your game per screen. In fact, usually only the game itself needs to use a specific 2D/3D rendering, but classic splash screen, menu, options can be done with the classic android layout and some tweaking on the appearance and animations.

Besides this let you change each screen independently, and just create different intents to play the game, with specific information (like which level to load, the saved states etc..) in the intent data

share|improve this answer
add comment

Personally I found it extremely easier to simplify the process with different "scenes". I created one for the menu-system, and one for the game itself. This allowed me to do some cool stuff (rendering/animation) in the menu. Just create one scene, throw some buttons/text on it. When you hit a button, remove those buttons from scene and add new ones. Just create a static management class to help your flow. Then just remove that scene, and give the gameScene to the engine, and you're good to play, and vice-versa when you're ready to exit game into menu.

share|improve this answer
add comment

AndEngine provieds specific classes to satisfy the game requirement.

You can have a single activity with different scenes for specific purpose:

Firstly, You can use Scene with TimerHandler to have asplash screen.

Secondly,You can use MenuScene from andengine.entity.scene.menu.MenuScene to manage MainMenu scene.

Third,on Click of a particular menu of the game u can either launch different activity say to show 'HighScore' or 'How To Play' or you can have scenes to do the same. Its your choice. But managing scenes this way is much better.

You can also refer this.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.