User Tools

Site Tools


basic_cannon_defender

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

basic_cannon_defender [2019/05/22 10:43]
frchris created
basic_cannon_defender [2019/05/22 10:48] (current)
frchris
Line 1: Line 1:
 +====== Castle Defense ======
 +
 +Here are two classes, a CannonBall class and a BasicCannon class which is a Graphics Application with a timer (so objects can act over time -- like fall), and a Keyboard input so that it can react to the arrow keys (Up and down for the angle of the Cannon, and left-right for changing the force (which costs the use gunpowder).  ​
 {{ ::​castle_defense.zip |}} {{ ::​castle_defense.zip |}}
basic_cannon_defender.txt ยท Last modified: 2019/05/22 10:48 by frchris