Autotiles are a new asset type with a tab that shows every tile of the floor (2x3) or wall (2x2) block and an animated sample pattern (#118)
game-maker / gate (push) Successful in 1m50s
game-maker / suite (push) Successful in 5m59s

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5 committed 2026-09-17 21:35:29 +02:00
1 parent c17b2b5426
commit 1a9f07c4ac
24 files changed
+1797 -18

No files matched your search

+16
View File
@@ -507,6 +507,22 @@ export function installDebugHook(app: Application, state: EditorState, editor: E
fitAt: () => centreOf(editor.animationEditor.fitButton),
},
},
autotile: {
current: () => editor.autotileEditor.currentAssetId,
info: () => editor.autotileEditor.shownInfo,
/** What the board drew: tiles, the picture it is showing and what stands in the way. */
board: () => editor.autotileEditor.canvas.debugInfo(),
pictures: () => editor.autotileEditor.strip.debugInfo(),
/** A tile of the board: its quarters and where each of them is drawn. */
tile: (index: number) => editor.autotileEditor.canvas.tileDrawn(index),
/** Which board tile a cell of the sample map became – `-1` when that cell is empty. */
sampleTile: (row: number, column: number) => editor.autotileEditor.canvas.sampleTile(row, column),
kindPickerAt: () => centreOf(editor.autotileEditor.kindPicker),
addPictureAt: () => centreOf(editor.autotileEditor.strip.addButton),
removePictureAt: () => centreOf(editor.autotileEditor.strip.removeButton),
pictureRowAt: (index: number) => editor.autotileEditor.strip.list.rowGlobal(String(index)),
fitAt: () => centreOf(editor.autotileEditor.fitButton),
},
container: {
current: () => containerEditor.currentAssetId,
pickerWidth: () => containerEditor.picker.w,