Repository navigation
API Interface TilemapLayerData
Defined in: src/plugins/tilemaps/runtime/format.ts:37
One layer of a Tilemap as stored in scene files.
chunks: Record<string, string>;Defined in: src/plugins/tilemaps/runtime/format.ts:54
"cx,cy" → run-length string of the chunk's 256 cell values.
collision: boolean;Defined in: src/plugins/tilemaps/runtime/format.ts:46
Whether this layer's tiles make colliders (with a ShapeCollider2D).
locked?: boolean;Defined in: src/plugins/tilemaps/runtime/format.ts:60
ADR 0441: the editor's brushes skip it. Absent: false.
name: string;Defined in: src/plugins/tilemaps/runtime/format.ts:40
offset?: [number, number];Defined in: src/plugins/tilemaps/runtime/format.ts:56
ADR 0441: shifts the layer's drawing and collision, in local units. Absent: [0, 0].
opacity: number;Defined in: src/plugins/tilemaps/runtime/format.ts:50
0..1, multiplied with the tiles' alpha.
orderInLayer: number;Defined in: src/plugins/tilemaps/runtime/format.ts:43
palette: Record<string, string>;Defined in: src/plugins/tilemaps/runtime/format.ts:52
The layer's tile numbers (the cell values' low bits, as strings) → the tileset tiles' uuids (ADR 0392).
parallax?: [number, number];Defined in: src/plugins/tilemaps/runtime/format.ts:58
ADR 0441: how much the layer moves with the view camera (Tiled's parallax factor), visual only. Absent: [1, 1].
sortingLayer: string;Defined in: src/plugins/tilemaps/runtime/format.ts:42
Sorting layer name from project settings (back to front).
tint: string;Defined in: src/plugins/tilemaps/runtime/format.ts:48
Tint as #rrggbb, multiplied with the tiles.
v?: number;Defined in: src/plugins/tilemaps/runtime/format.ts:39
Format version; absent means 1.
visible: boolean;Defined in: src/plugins/tilemaps/runtime/format.ts:44
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