This game is based on Cocos2d-JS V3.0 a2, it is from the online tutorial http://discuss.cocos2d-x.org/t/tutorial-series-use-the-cocos2d-html-5-game-engines-write-a-simple-game-part-1-3/13159