Search in sources :

Example 1 with PongState

use of com.indignado.games.states.PongState in project Entitas-Java by Rubentxu.

the class Pong method create.

@Override
public void create() {
    AssetManager assetsManager = new AssetManager(new TestFileHandleResolver());
    BasePreferencesManager preferencesManager = new BasePreferencesManager();
    PongEngine engine = new PongEngine();
    engine.addManager(new BaseAssetsManager(assetsManager, preferencesManager));
    engine.addManager(new BasePhysicsManager(new Vector2(0, 0)));
    engine.addManager(new BaseGUIManager(new BitmapFont(), null, engine));
    engine.addManager(new BaseSceneManager(engine));
    game = new PongGame(engine, new EGEventBus(new MBassador()));
    game.init();
    game.pushState(new PongState(engine));
}
Also used : AssetManager(com.badlogic.gdx.assets.AssetManager) PongState(com.indignado.games.states.PongState) TestFileHandleResolver(com.indignado.games.util.TestFileHandleResolver) MBassador(net.engio.mbassy.bus.MBassador) Vector2(com.badlogic.gdx.math.Vector2) BitmapFont(com.badlogic.gdx.graphics.g2d.BitmapFont) EGEventBus(com.ilargia.games.entitas.egdx.EGEventBus)

Aggregations

AssetManager (com.badlogic.gdx.assets.AssetManager)1 BitmapFont (com.badlogic.gdx.graphics.g2d.BitmapFont)1 Vector2 (com.badlogic.gdx.math.Vector2)1 EGEventBus (com.ilargia.games.entitas.egdx.EGEventBus)1 PongState (com.indignado.games.states.PongState)1 TestFileHandleResolver (com.indignado.games.util.TestFileHandleResolver)1 MBassador (net.engio.mbassy.bus.MBassador)1