List of usage examples for com.badlogic.gdx ApplicationListener create
public void create();
From source file:es.eucm.ead.engine.EAdEngine.java
License:Open Source License
@Override public void create() { logger.debug("Creating graphic context"); Gdx.gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f); int width = 800; int height = 600; GdxCanvas spriteBatch = new GdxCanvas(); stage = new Stage(width, height, true, spriteBatch); spriteBatch.enableBlending();//from ww w . j a v a 2s .co m InvOrtographicCamera c = new InvOrtographicCamera(); float centerX = width / 2; float centerY = height / 2; c.position.set(centerX, centerY, 0); c.viewportWidth = width; c.viewportHeight = height; stage.setCamera(c); gui.setStage(stage); Gdx.input.setInputProcessor(stage); gameLoader.loadGame(this); addDebug(); for (ApplicationListener a : applicationListeners) { a.create(); } }