I use the following methods and the screen moves away from the player.
glTranslatef(h.x - width/2, h.y - hieght/2, 0);
if ((Keyboard.isKeyDown(Keyboard.KEY_D))) {
h.x += 10;
}
if (Keyboard.isKeyDown(Keyboard.KEY_A)) {
h.x -= -10;
}
How do I make it so the player and the screen moves? Also shouldn't I just use the camera?