public void render(SpriteBatch batch) { super.render(batch); field.render(batch, fadeMultiplier); field2.render(batch, fadeMultiplier); probState.render(batch, fadeMultiplier); }
public void update() { super.update(); probState.update(true); if (Gdx.input.justTouched()) { field.update(Gdx.input.getX(), Gdx.input.getY()); field2.update(Gdx.input.getX(), Gdx.input.getY()); } if (field.update()) { field.animateTo(new Vector2(Gdx.graphics.getWidth() / 2, 2 * Gdx.graphics.getHeight() / 3)); field2.setVisible(true); } if (field2.update()) { System.out.println("okay"); Application.TRANSITION_SIGNAL = 83; } }