Beispiel #1
0
 @Override
 public void show() {
   ready = false;
   if (!VisUI.isLoaded()) VisUI.load(VisUI.SkinScale.X1);
   multiplexer = new InputMultiplexer();
   screenSize = new Vector2(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
   midpoint = new Vector2(Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2);
   stage2d = new Stage(new ScreenViewport(new OrthographicCamera(screenSize.x, screenSize.y)));
   setActiveCamera();
 }