A similar game with greedy snake. wirrten with cocos2d-x-3.2rc0.