basic_cannon_defender
Differences
This shows you the differences between two versions of the page.
basic_cannon_defender [2019/05/22 10:43] – created frchris | 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). | ||
{{ :: | {{ :: |
basic_cannon_defender.txt · Last modified: 2019/05/22 10:48 by frchris