The source code for the book’s two sample games is now available on this website.
For more information on each project (such as where to get the code and how to build it, go to the page dedicated to each game).
Ship Attack!, a 2D endless side-scroller for iOS that’s written in Objective-C with cocos2d.
__Defense, a 3D tower defense game for PC/Mac that’s written in C# with XNA/MonoGame.