Titanium Sprite Sheet Module for iOS
Objective-C Python JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
assets
documentation
example
hooks
platform
sprite.xcodeproj
.gitignore
LICENSE
README.md
TiSprite_Prefix.pch
build.py
manifest
module.xcconfig
timodule.xml
titanium.xcconfig

README.md

DON'T USE THIS -- IT IS NO LONGER MAINTAINED. USE LANICA INSTEAD.

Appcelerator Titanium Sprite Module for iOS

This module provides Sprite Sheet functionality for Appcelerator Titanium for iOS.

Usage

Animate a sprite sheet:

var window = Ti.UI.createWindow();

var s = require('ti.sprite');

var sprite = s.createSprite({
   url:'runningcat.png', 
   width:512, 
   height:256
});

sprite.startAnimating(0,8,1000);

window.add(sprite);

window.open();

Display a specific image in the sprite sheet. x is the row and y is the column (zero based):

var window = Ti.UI.createWindow();
var s = require('ti.sprite');

var sprite = s.createSprite({
   url:'spritesheet16.gif',
   width:16,
   height:16,
   x:0,
   y:3
});

window.add(sprite);

window.open();

This code is licensed under the Apache Public License Version 2. See the LICENSE file.