@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); gameFase = new GameFase(); manager = new AGGameManager(this, false); manager.addScene(new IntroScene(manager)); manager.addScene(new MenuScene(manager)); manager.addScene(new Credits(manager)); manager.addScene(new Game(manager, gameFase)); manager.addScene(new GameOver(manager, gameFase)); }
@Override protected void onDestroy() { super.onDestroy(); manager.release(); manager = null; }
@Override protected void onPostResume() { super.onPostResume(); manager.onResume(); }