ESprite

type:
extension
author:
Elliot Franford
description:
This is an enhanced sprite for sparrow
lastupdate:
2012-02-25
compatible:
v1.2
tag:
sprite, ESprite
homepage:
https://github.com/efranford/SparrowEnhancedSprite
download:
https://github.com/efranford/SparrowEnhancedSprite/zipball/master

Usage

The Sparrow Enhanced Sprite aims at making and managing sprites easier.

Quick and dirty to make a sprite you can just do:

ESprite* sprite = [[ESprite alloc]initWithESpriteFile:@"sprite.xml" AndInitialAnimation:@"startingAnimation"];
[self addChild:sprite];

To do this you need to define an ESprite in an xml file. The XML object expected looks like:

<?xml version="1.0" encoding="UTF-8"?>
<ESprite name="spriteName" spriteAtlas="atlasFile.xml">
    <State name="someState" animationPrefix="prefixInAtlas" animationFPS="#" loop="bool" />
    ...
</ESprite>

I recommend downloading the example on github and trying that out.

Example Screenshot

Changelog

  • 2012/02/26 03:16: First public version

Source Code

Discussion

No comments so far. Feel free to edit this part of the page.

  extensions/esprite.txt · Last modified: 2015/09/14 11:15 (external edit)
 
Powered by DokuWiki