CPSC362A
Video Game Development

Activity 7

First-person Camera Translation

Create an OpengGL program where the user can control the camera location with the keyboard.

Details

  1. The program should draw a bunch of stars at random x and y locations.

  2. The user should be able to use the wasd keys to move the camera forward, backward, left and right. See the GLFW Keyboard Keys Documentation for a list key constants.

  3. (Optional) Draw a checker board pattern of squares as a floor.

Example