Rev 437 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package com.gebauz.pingk;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Peripheral;
import com.badlogic.gdx.graphics.Texture;
import com.gebauz.Bauzoid.app.BauzoidApp;
import com.gebauz.Bauzoid.app.Game;
import com.gebauz.Bauzoid.app.Game.IGameFactory;
import com.gebauz.Bauzoid.math.Vector4;
import com.gebauz.pingk.game.GameConsts;
public class PingkApp
extends BauzoidApp
{
public PingkApp
(boolean adsEnabled
)
{
this(adsEnabled,
null);
}
public PingkApp
(boolean adsEnabled, IGameFactory alternateFactory
)
{
super("PingK", adsEnabled, alternateFactory
);
}
@
Override
public void initGame
()
{
//Texture test = new Texture(Gdx.files.internal("data/testsprite2.png"));
// Global initializations
mGame.
setCustomServices(new PingkCustomServices
(mGame
));
mGame.
getInput().
setVirtualSize(GameConsts.
VIRTUAL_SCREEN_WIDTH, GameConsts.
VIRTUAL_SCREEN_HEIGHT);
// TODO: read initial game state from config/XML
//mGame.getGameStateManager().switchTo("com.gebauz.pingk.gamestates.MainGameState");
//mGame.getGameStateManager().switchTo(com.gebauz.pingk.gamestates.TitleState.class);
mGame.
getGameStateManager().
switchTo(com.
gebauz.
pingk.
gamestates.
LogoState.
class);
//mGame.getGameStateManager().switchTo(com.gebauz.pingk.gamestates.MainGameState.class);
}
@
Override
public void exitGame
()
{
}
}