Package-level declarations

Types

Link copied to clipboard
inline class Tile(val raw: Int53)
Link copied to clipboard
data class TileMapData(val data: IStackedInt53Array2, val tileSet: TileSet = TileSet.EMPTY, val repeatX: TileMapRepeat = TileMapRepeat.NONE, val repeatY: TileMapRepeat = TileMapRepeat.NONE, val offsetScale: Float = 1.0f) : BaseDelegatedStackedArray2, IStackedArray2<Tile>
Link copied to clipboard
Link copied to clipboard
class TileSet

A set of BmpSlice where all share a width and height. For performance’s sake, ideally, all the slices should be part of the same Bitmap.

Link copied to clipboard
data class TileSetAnimationFrame(val tileId: Int, val fastDuration: FastDuration) : Extra
Link copied to clipboard
data class TileSetTileInfo(val id: Int, val slice: BmpSlice, val frames: List<TileSetAnimationFrame> = emptyList(), val collision: TileShapeInfo? = null) : Extra
Link copied to clipboard
Link copied to clipboard
data class TileShapeInfoImpl(val type: HitTestDirectionFlags, val shape: Shape2D, val transform: Matrix) : TileShapeInfo

Properties

Link copied to clipboard

Extension property to get the SliceOrientation of the Tile.

Link copied to clipboard

Extension property to determine if the SliceOrientation represents a horizontal flip.

Link copied to clipboard

Extension property to determine if the SliceOrientation represents a vertical flip.

Link copied to clipboard

Extension property to determine if the SliceOrientation represents a rotation.

Functions

Link copied to clipboard

Returns a new Tile that is flipped horizontally.

Link copied to clipboard

Returns a new Tile that is flipped vertically.

Link copied to clipboard
fun TileMapData.get(p: PointInt, level: Int): Tile
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun TileMapData.push(p: PointInt, value: Tile)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun TileMapData.renderTo(out: Bitmap, x: Int = 0, y: Int = 0)
Link copied to clipboard
fun Tile.rotatedLeft(offset: Int = 1): Tile

Returns a new Tile that is rotated to the left by the specified offset.

Link copied to clipboard
fun Tile.rotatedRight(offset: Int = 1): Tile

Returns a new Tile that is rotated to the right by the specified offset.

Link copied to clipboard
fun TileMapData.set(p: PointInt, level: Int, value: Tile)
Link copied to clipboard
fun Tile(tile: Int, orientation: SliceOrientation = SliceOrientation.NORMAL, offsetX: Int = 0, offsetY: Int = 0): Tile

Creates a Tile with the specified tile number, orientation, offsetX, and offsetY.

Link copied to clipboard

Converts the Tile to a string representation.

Link copied to clipboard
Link copied to clipboard

Returns a new Tile with the specified orientation.