The source code for the second sample game from the book, Ship Attack! is now up. It’s a 2D side-scroller for iOS devices that’s written in Objective-C using cocos2d. As with the source code for the tower defense game, there is a chapter in the book that provides insight into the code provided.