This overview shows you how to create your first sprite sheet and import it into your cocos2d-swift project.
These easy steps will cost you only 5 minutes - but make your development much easier. Promised!
Add sprites ...
Drag & drop sprites
... or folders
all sprites inside the folder
and updates the texture
when the content changes.
Set output files
Make sure to set the output path of both files so that the images can be reached from your project.
Click Publish sprite sheet to write the sprite sheet to your Cocos2D-Swift project.
Add texture and plist file to your project.
Preload texture data
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile: @"spritesheet.plist"];
CCSprite *sprite = [CCSprite spriteWithImageNamed:@"sprite.png"]; [self addChild:sprite];