use of com.examples.games.util.TestFileHandleResolver in project Entitas-Java by Rubentxu.
the class Examples method create.
@Override
public void create() {
engine = new ExamplesEngine();
entitas = new Entitas();
preferencesManager.LOG_LEVEL = LogManager.LOG_DEBUG;
AssetManager assetsManager = new AssetManager(new TestFileHandleResolver());
engine.addManager(new AssetsManagerGDX(assetsManager, preferencesManager));
engine.addManager(new PhysicsManagerGDX(new Vector2(0, -9.8f)));
engine.addManager(new GUIManagerGDX(new ScreenViewport(), new BitmapFont(), engine));
engine.addManager(new SceneManagerGDX(engine, entitas));
engine.addManager(new LogManagerGDX(preferencesManager));
engine.addManager(new InputManagerGDX(entitas, engine));
engine.addManager(preferencesManager);
game = new ExamplesGame(engine, new EventBusGDX(new MBassador()));
game.init();
game.pushState(new PlatformExampleState(engine, entitas));
}
Aggregations