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 update() { chat.update(); player.update(); tileMap.update((1280 / 2) - (int) player.getX(), (720 / 2) - (int) player.getY()); robot.update(); }