migration of changes from cocos2d-xna