Item Collecting

The game

This game was created by myself, though I used the EZ Graphics package. The goal is simple: collect all of the fruits. Hitting the toxic waste subtracts a point each time.

Fruits are populated on screen randomly and then they move in random directions without leaving the bounds of the screen. Toxic waste barrels are stationary objects.

This game was our second project for the class and demonstrates our knowledge of object oriented programming.

There is a point counter in the corner of the screen. For every fruit that you collect, the counter increments by one. The goal is to just collect all of the fruits with a score higher than 0.

If the player hits the toxic waste, the pointer decrements by one. If the score reaches 0, you lose and the program terminates.