SHAFT - A.... skill game
in
Share your Work
•
2 years ago
I nearly have embedding working so after my exam tommorow morning (GMT) I will post (hopefully) an embedded version of the game to try out. We havent finished putting in the scoreboard and menu system yet but when we've done that i'm sure itd be fun to play!
Here is the video link.
It uses openGL and Matthew Yee-King and Martin Roth's AudioThread classes for the sound interaction.
The basic concept is generated cubes. I am playing with the camera angle here to generate the walls.
The walls are generated by drawing an array of squares (imagine you are looking from birds eye view) and then changing the camera angle so it looks like a floor, walls, or ceiling.... then rotating the camera by 90 degrees to generate the next wall.
A quick understandable way to show u what i mean is this code:
rotate(90);
drawWall();
rotate(90);
drawWall();
rotate(90);
drawWall();
The size of the rectangles and position is determined by the music. The Color also switches at different intervals and a threshold is in place for sudden flashes of light (aswell as the rectangles size changing).
This was another first year project at my University which is actually a group Project devised by: Callum Pywell, Joseph Boston (me), Ondrej Kruzica, Jack Wooster and Michael Gray.
Source code can be found at
http://www.projectfireball.com