@Override public boolean touchDown(int screenX, int screenY, int pointer, int button) { if (button == Input.Buttons.LEFT) { Simulation.get().addObstacle(screenX, Settings.WORLD_MAX_Y - screenY); } else if (button == Input.Buttons.RIGHT) { Simulation.get().removeObstacle(screenX, Settings.WORLD_MAX_Y - screenY); } return true; }