Game Development Reference
In-Depth Information
Our game - MiniPool
Our game consists of sixteen balls (circles), one cue (box), and a pool table made out of six
lines (edges) and six pockets (circles). This is all there is to it as far as the Box2D simula-
tion is concerned.
Download the final project from this topic's Support page if you wish to follow along with
the final code. Box2D is a complex API and it will be best to review and expose the logic
rather than work on it by doing a lot of typing. So there will be no start project to work
from this time. You may choose any manner to add files from the finished project to the
one we started when I showed you how to set up the debug draw object. The final game
will look like this:
Search WWH ::




Custom Search