Repository navigation
API Interface TileDef
Defined in: src/plugins/tilemaps/runtime/tileset.ts:44
anchor?: [number, number];Defined in: src/plugins/tilemaps/runtime/tileset.ts:61
Where the tile's sprite sits in its cell, [x, y] 0..1: the sprite's point lands on the same point of the cell (ADR 0119). Default: the tileset's, else [0, 0].
collision: TileCollision;Defined in: src/plugins/tilemaps/runtime/tileset.ts:53
data?: Record<string, unknown>;Defined in: src/plugins/tilemaps/runtime/tileset.ts:63
Anything the game wants, read with Tilemap.getTileData.
id: number;Defined in: src/plugins/tilemaps/runtime/tileset.ts:46
Unique within the tileset, 1 to 16777215: what scripts name the tile by (Tilemap.setTile, getTile).
name?: string;Defined in: src/plugins/tilemaps/runtime/tileset.ts:50
Optional display name.
pattern?: string;Defined in: src/plugins/tilemaps/runtime/tileset.ts:57
Where this tile fits in its terrain (default all *).
sprite: string;Defined in: src/plugins/tilemaps/runtime/tileset.ts:52
Sprite reference, usually a slice: asset:images/tiles.png#grass_0.
terrain?: string;Defined in: src/plugins/tilemaps/runtime/tileset.ts:55
Terrain this tile belongs to, for auto-tiling.
uuid: string;Defined in: src/plugins/tilemaps/runtime/tileset.ts:48
Unique within the tileset, never changed and never reused: what Tilemap layers' palettes name the tile by (ADR 0392).
weight?: number;Defined in: src/plugins/tilemaps/runtime/tileset.ts:59
Relative chance for random brushes and auto-tiling ties (default 1).
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference