Level editor with test play #10

Closed
opened 2026-11-04 00:43:36 +00:00 by Weissstreifen · 1 comment

A level editor inside the game, as Go Up had (there you reached it by answering "0" to "how many players?"). Here it's Editor on the title screen.

  • Edit the 40x20 board with the mouse: a palette of the tiles (brick, stone, ladder, zip line, exit ladder, crystal, player start, chaser), pencil, rect, fill, eraser, picker, undo/redo, all from world/level_editor (TilePainter), with the board as a tile map layer (parin_kit#176 converts boards and layers; until then a small converter in the game with a TODO).
  • Keyboard shortcuts as in the level editor of parin_kit, and the gamepad can move a cursor too.
  • The exit ladder tiles are shown dimmed (they're hidden in play), so you see where it will appear.
  • Test play (Enter or a Play button): plays the level right away from the editor, without points; Esc returns to the editor at the same state of the board and the undo history.
  • A form for the title and author (ui/text_edit).
  • Validation from the level loader before saving or test play, with the messages next to the board (no start, no crystal, exit ladder doesn't reach the top...). A warning if the start is walled in.
  • New level: an empty board with stone at the bottom row.

Done when: you can draw a level from scratch, test it, fix it and test it again without leaving the editor.

A level editor inside the game, as Go Up had (there you reached it by answering "0" to "how many players?"). Here it's **Editor** on the title screen. - Edit the 40x20 board with the mouse: a palette of the tiles (brick, stone, ladder, zip line, exit ladder, crystal, player start, chaser), pencil, rect, fill, eraser, picker, undo/redo, all from `world/level_editor` (`TilePainter`), with the board as a tile map layer (parin_kit#176 converts boards and layers; until then a small converter in the game with a TODO). - Keyboard shortcuts as in the level editor of parin_kit, and the gamepad can move a cursor too. - The exit ladder tiles are shown dimmed (they're hidden in play), so you see where it will appear. - **Test play** (Enter or a Play button): plays the level right away from the editor, without points; Esc returns to the editor at the same state of the board and the undo history. - A form for the title and author (`ui/text_edit`). - **Validation** from the level loader before saving or test play, with the messages next to the board (no start, no crystal, exit ladder doesn't reach the top...). A warning if the start is walled in. - New level: an empty board with stone at the bottom row. **Done when:** you can draw a level from scratch, test it, fix it and test it again without leaving the editor.
Author
Owner

Done: editor with pencil/rect/fill, undo/redo, test play (Enter), menu with title/author, save, check, download, share code, and a tutorial (opens the first time, H or the menu).

Done: editor with pencil/rect/fill, undo/redo, test play (Enter), menu with title/author, save, check, download, share code, and a tutorial (opens the first time, H or the menu).
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/crystal_climb#10
No description provided.