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));
}
Aggregations