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