Super Android World
by Randy Chan
CPE-471 Winter 2012
Overview
The game is a typical side scroller that has similar
gameplay as a Super Mario game. The point of the game is to try to get from the beginning to the
end without dying. The main character in the game is the Android. I initially
wanted to import apple models for the enemies, but I did not have to bother with using Blender.
Instead, I used bunnies! You have to jump on top of bunnies or shoot a fireball at them to destroy them.
Sometimes you even have to use the bunnies to progress the level!
Mechanics
I created classes for the bunnies and fireballs. The bunnies and fireballs
were stored in vector arrays. Collision detection was done by a glutTimer constantly checking if the positions
of the Android, bunnies, or fireballs were too close to each other. For controlling the Android,
I did not use the normal WASD keys to move the Android. The problem I found was that when I pressed and held
down a key to move and jump at the same time, it would cancel the movement action. Instead, I decided to use a mouse click and drag control.
Mouse Controls
Clicking will create a center point from where you will drag. The greater the
mouse position from the center is, the faster the Android will move. So click and drag in the direction you want the
Android to move. There is a maximum movespeed that the Android can move. Also, right clicking counts as a jump!
Known Bugs
-Collision detection with the bunnies is not perfect.
-Killing multiple bunnies at the same time causes errors sometimes.
Controls
Moving the Android – Click and Drag
Space or Right Mouse Click – Jump (2 JUMPS MAX)
B – Fire fireball
R – Resets the Game
- – Zooms Camera Out
= – Zooms Camera In
Esc – Quit
Screen Shots
Figure
1
Android jumping to kill his enemies.
Figure
2
Android killed him enemies by jumping on them!
Figure
3
Android firing his fireball! It's RED!!
Figure
4
Android having his victory dance! You win!