Go to most recent revision | Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 836 | chris | 1 | package com.gebauz.burutaru; |
| 2 | |||
| 3 | import com.gebauz.bauzoid.game.Game.IGameFactory; |
||
| 4 | import com.gebauz.bauzoid.app.BauzoidApp; |
||
| 5 | |||
| 6 | public class BurutaruApp extends BauzoidApp |
||
| 7 | { |
||
| 8 | |||
| 9 | // Constants======================================================================================== |
||
| 10 | |||
| 11 | // Embedded Types=================================================================================== |
||
| 12 | |||
| 13 | // Fields=========================================================================================== |
||
| 14 | |||
| 15 | // Methods========================================================================================== |
||
| 16 | |||
| 17 | public BurutaruApp(boolean adsEnabled) |
||
| 18 | { |
||
| 19 | this(adsEnabled, null); |
||
| 20 | } |
||
| 21 | |||
| 22 | public BurutaruApp(boolean adsEnabled, IGameFactory gameFactory) |
||
| 23 | { |
||
| 24 | super("Burutaru Z", adsEnabled, gameFactory); |
||
| 25 | } |
||
| 26 | |||
| 27 | @Override |
||
| 28 | public void initGame() |
||
| 29 | { |
||
| 30 | // Global initializations |
||
| 31 | mGame.setCustomServices(new BurutaruCustomServices(mGame)); |
||
| 32 | |||
| 33 | mGame.getInput().setVirtualSize(GameConsts.VIRTUAL_SCREEN_WIDTH, GameConsts.VIRTUAL_SCREEN_HEIGHT); |
||
| 34 | |||
| 35 | mGame.getGameStateManager().setDefaultPackage(this.getClass().getPackage().getName() + ".gamestates"); |
||
| 36 | mGame.getGameStateManager().setLoadingScreen(new LoadingScreen(mGame)); |
||
| 37 | |||
| 38 | String initialState = mGame.getSettings().getSetting("initstate"); |
||
| 39 | String stateParams = mGame.getSettings().getSetting("state_param"); |
||
| 40 | mGame.getGameStateManager().switchTo(initialState, stateParams); |
||
| 41 | |||
| 42 | // Global sounds. |
||
| 43 | /*mGame.getAudio().newManagedSound("data/sounds/menu_push.wav"); |
||
| 44 | mGame.getAudio().newManagedSound("data/sounds/menu_click.wav"); |
||
| 45 | mGame.getAudio().newManagedSound("data/sounds/menu_confirm.wav");*/ |
||
| 46 | } |
||
| 47 | |||
| 48 | @Override |
||
| 49 | public void exitGame() |
||
| 50 | { |
||
| 51 | } |
||
| 52 | |||
| 53 | @Override |
||
| 54 | public void render() |
||
| 55 | { |
||
| 56 | super.render(); |
||
| 57 | |||
| 58 | } |
||
| 59 | |||
| 60 | // Getters/Setters================================================================================== |
||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | } |