//Create a sprite with an image file auto sprite = cocos2d::Sprite::create("sprite.png"); //Set position of the sprite sprite->setPosition(cocos2d::Vec2(100,100)); //Add the sprite to the scene this->addChild(sprite);In this example, we create a CCSprite with an image file, set its position to (100,100), and add it to the current scene. The package library for CCSprite is Cocos2d-x.