A short description of my final project for the Computer Graphics course, part of the Parallel & Distributed Computer Systems, while being an Erasmus student at the Vrije Universiteit in Amsterdam. Source code available on request.
3. Storyline
● A distant galaxy where black holes are square
● F16 can't fly since there's no atmosphere
● Thus...
● it can only glide
● and make small jumps using it's thrusters to avoid
the obstacles (gaps and boxes)
5. Features (2)
●
Animations, track of obstacles
F16 dismembers after colliding with a box F16 jumps over a box
game "look-and-feel"
6. Program design
●
Scene graph data structure
●
Camera is the root
●
Spaceship, Runway, Track are all children of the
Camera root node (and siblings among themselves)
●
Track class defines layout of obstacles (implemented
as a totally ordered array with the Comparable
interface)
Camera
Spaceship Runway Track
8. Program design (3)
● Collision detection
● Bounding/sliding window rendering (+efficiency)
● obstacles are rendered relative to a minimum and
maximum bound (based on the F16's position)