TurtleTheater / Cannonball

Firing a cannonball from a cannon, made fun!
MIT License
0 stars 0 forks source link

Remaining Attempts in the Player Class #41

Closed geppettodivacin closed 10 years ago

geppettodivacin commented 10 years ago

Take the attempts variable from the main file (cannonball.pde) and move it into the Player class (player.pde). Make it private with an accessors function (getAttempts()). Then add a function to decrement the player's attempts.

Use this new variable throughout the main program instead of the current global one.

This assignment should be comparatively easy.

halfoff commented 10 years ago

I managed to swap the functionality to the player class, however, it broke the target class.
Also, I'm having trouble getting the balls to update properly.

halfoff commented 10 years ago

Implemented functionality from player class.