Fork me on GitHub
View source

package haxepunk.graphics.tile

class TiledSpritemap


extends Spritemap

Special Spritemap object that can display blocks of animated sprites.

Constructor

View source

new (source : TileType, frameWidth : Int = 0, frameHeight : Int = 0, width : Int = 0, height : Int = 0) : Void

Constructs the tiled spritemap.


Parameters:
source   

Source image.

frameWidth   

Frame width.

frameHeight   

Frame height.

width   

Width of the block to render.

height   

Height of the block to render.