https://github.com/codeandweb/ccanimate-spritesequenceloader
Simple addon for Cocos2d to allow loading animations from a sprite sheet
https://github.com/codeandweb/ccanimate-spritesequenceloader
Last synced: about 1 year ago
JSON representation
Simple addon for Cocos2d to allow loading animations from a sprite sheet
- Host: GitHub
- URL: https://github.com/codeandweb/ccanimate-spritesequenceloader
- Owner: CodeAndWeb
- Created: 2012-05-07T11:14:01.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-07T11:19:32.000Z (about 14 years ago)
- Last Synced: 2025-04-03T11:22:16.531Z (about 1 year ago)
- Language: Objective-C
- Size: 91.8 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CCAnimate-SpriteSequenceLoader
==============================
Simple addon for Cocos2d to allow loading animations from a sprite sheet.
Name your sprite like
+ ball01.png
+ ball02.png
+ ...
Then use the following snippet to load the animation:
#import "CCAnimate+SequenceLoader.h"
// with specified number of frames
[sprite runAction:[CCAnimate actionWithSpriteSequence:@"ball%02d.png"
numFrames:4
delay:0.1
restoreOriginalFrame:NO] ];