public void render() { glPushMatrix(); { glClearColor(0, 0, 0, 0); glColor4f(255, 255, 255, 255); tileMap.render(); player.render(tileMap.getX(), tileMap.getY()); chat.render(); robot.render(); } glPopMatrix(); }
public void getInput() { if (Keyboard.isKeyDown(Keyboard.KEY_Z)) { if (!pressed) { robot.path(); pressed = true; } } if (Keyboard.isKeyDown(Keyboard.KEY_P)) { pressed = false; } player.getInput(); }
public void update() { chat.update(); player.update(); tileMap.update((1280 / 2) - (int) player.getX(), (720 / 2) - (int) player.getY()); robot.update(); }