Skip to content

Using the Level Editor

Raoul1808 edited this page Aug 19, 2023 · 6 revisions

The game is shipped with the level editor I use to make levels for the game. The controls are not documented in-game, so here they are.

The editor is very barebones. As the entire game + editor was made within a small time frame in a custom engine, some editor features are very lacking, but the minimum necessary is there to make playable levels.

Quick rundown of the tilemaps

The game uses 3 tilemaps on each level.

  • The Common Tilemap is used on both the Dark World and the Light World
  • The Dark Tilemap is used exclusively by the Dark World
  • The Light Tilemap is used exclusively by the Light World

It doesn't make much sense, but now that I have built the whole game around it, it's very hard to revert this change. Sorry.

While editing a level, you can switch between both tilemaps by pressing Tab.

Shortcuts

Shortcut Action
Ctrl + N Create a new level/Clear the editor
Ctrl + O Open a level
Ctrl + S Save the current level
Ctrl + Shift + S Save the current level as a new level
Ctrl + T Save and playtest the current level
Mouse Middle Click Set the player spawn point
Ctrl + Mouse Middle Click Set the exit door point
Tab Cycle tilemaps (Common -> Dark -> Light -> Common)
Escape Open/Close editor menu (all other shortcuts are disabled while this menu is open)

Tile Picker

You can place down tiles with the Left Click, and remove tiles with the Right Click. You can change the tile to place with the following keys:

Key Tile
1 Solid Tiles
2 Spikes
3 Portal
4 Key
5 Spawn Point (only one per level)
6 Exit Door (only one per level)

For portals and spikes only, you can change the orientation by pressing the arrow keys.

Naming your level and setting a color palette

Because text input in this game is a little finicky, I'll explain a bit how it works.

When you press Enter, you enter text edit mode. The text you can enter is limited to this character set:

  • Uppercase letters (A-Z) and lowercase letters (a-z)
  • Digits (0-9)
  • Spaces
  • A few "special characters" (-, _, .)

Pressing either Escape or Enter will leave text input mode.

To set a new palette, you have to go to the editor menu, select the palette type (Simple, Lerp or Trippy), then open the palette settings and enter the hex codes for the colors you want.

A few notes:

  • By default, new levels use a simple black and white palette.
  • Trippy color palettes don't have any settings.
  • Simple color palettes take two colors only.
  • Lerp color palettes take four colors (2 for each world side).
  • All colors must be written in hexadecimal in 6 characters.
  • If the game detects a wrong hex code, the palette won't be saved to the tilemap.
  • Make sure you remember your hex codes if you want to edit them later! The editor does NOT display current palette hex codes when loading the editor scene.