Box2D Cannon Game With Stars
Ian Parberry's "Introduction to Game Physics"
Box2D Cannon Game with Stars

This version of the Cannon Game uses a Box2D contact listener to play the right collision sounds and animate colored stars at the points of contact. It's almost identical to the Box2D Cannon Game except that the code for playing collision sounds has been removed, and code for a Box2D contact listener has been added.

Keyboard Controls

Key
Action
F1 Help (this document)
Enter Restart when over
Space Fire cannon
Up arrow Rotate cannon barrel up while key is down
Down arrow Rotate cannon barrel down while key is down
Left arrow Start cannon moving left
Right arrow Start cannon moving right
S Stop cannon
PrtScr (hold down) Save screenshot to a PNG file

The LARC Engine

This code uses the LARC Engine and is part of the LARC Code Base.