Box2D Cannon Game
Chapter 7 of Ian Parberry's "Introduction to Game Physics with Box2D"
 All Classes Files Functions Variables Enumerations Friends Pages
Box2D Cannon Game

This code was written by Ian Parberry to accompany his book "Introduction to Game Physics with Box2D", published by CRC Press in 2013.

The aim of the Cannon Game is to use the cannon to knock down a tower of books in less than 60 seconds. If the cannon overheats, the cannon explodes and you lose. If time runs out, you lose anyway.

Use the space bar to fire the cannon, the left and right arrow keys to move it, the up and down arrow keys to elevate the cannon barrel, the Enter key to restart the game, and the ESC key to quit.