For my computer graphics final project I programmed a simple game using OpenGL and GLM where you control a ball along a randomly generated path to reach the finish. The floating tiles that the ball rolls along only appear when the ball gets close. When the finish tile is reached, a new random path is generated which is 10 tiles longer than the previous level. In addition, the ball acceleration increases slightly with each level.
The camera can be rotated around the ball by moving the mouse left or right. The ball controls add velocity in directions relative to the camera view.
W move away from camera
S move toward camera
A move left
D move right
- zoom out
= zoom in
[ decrease camera angle
] increase camera angle
R restart level
G toggle cheat mode
X exit
Most of the code for this program was hand-written. The structure of the code resembles the base code from many of the labs. I modified Professor Wood's mesh loading code to read in the sphere.obj file.
"Looking for a simple sphere.obj file". OpenGL.org. Post by Ilian Denev (Post #3). Visited March 5, 2014. Available: https://www.opengl.org/discussion_boards/showthread.php/176762-looking-for-a-simple-sphere-obj-file
Here are the original images for textures used in the game, some of which I modified in GIMP to look differently and match the format that my program can handle. The ones on the left are the originals and the ones on the right are the modified versions. Click the textures to follow a link to the image/download.