A port of the Ray Wenderlich tutorial to Cocos 2D-X