Skip to content

Instantly share code, notes, and snippets.

@Nolithius
Nolithius / TiledSprite.h
Last active December 23, 2015 21:19
Cocos2d Tiled Sprite: Creates a tiled sprite from the source sprite's texture, tiling it or clipping it to the desired width and height.
//
// Cocos2d Tiled Sprite
//
// Ebyan Alvarez-Buylla
// http://www.nolithius.com
//
// Creates a tiled sprite from the source sprite's texture, tiling it or clipping it to the desired width and height.
// Usage: [[TiledSprite alloc] initWithSprite:spriteWithTextureOrSubtexture width:640 height:480];
//
// Further details and screenshot at: