Class Games

Directions: Use your mouse to guide your tiny character circle through a field of obstacles, and try to retain as many lives as you can!

My Hero class takes no variables and contains methods for creating each enemy instance, as well as the collision code. I also made a Setup class to house some values I wanted to call since I was having some issues with ordering my calls once I started using classes. Your life count is shown in the corner, and conditionals were used to do that as well as to trigger other events such as the death and win screens. A for loop was used for the background.

The first reference inspired my in-game color palette, and I didn’t involve shooting, but space invaders inspired the dropping down enemy dynamic. The final reference inspired the minimalistic interface.

Reference 1
Reference 2
Reference 3

--

--