An open API service indexing awesome lists of open source software.

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

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] ];