Level Editor for Graveyard Shift, a stealth-puzzle game built in LibGDX where players must evade and distract “mutants” that can hear but not see.
The level editor allows users to start by either creating a level of specific dimensions (that can be changed later) or by loading in an existing level JSON file.
From there, the toolbar can be used to add different types of tiles (like goals, lighting, doors, etc.), characters (players and mutants), items (keys, bricks, and bombs), and aethetics (barrels, crates, and PCs) by clicking on squares in the visualization of what the level will look like in-game.
Furthermore, mutant patrolling paths can be added by connecting mutants, and dialogue triggers can be viewed, added, and edited by using the trigger menu, with options like trigger type and dimensions, and a grid of existing triggers viewable.
Finally, as long as the level you have built fits the rules necessary for the level to be valid (exactly 1 player, at least 1 goal, and at most 1 checkpoint), it can be outputted as a JSON file by specifying the level number it will be in the game.
In order to install the necessary packages, without creating any large diffs, run the following command in the repo.
npm ci
In order to see the site and create your own levels, run the following command in the level-editor folder after setup.
npm run serve
Other instructions on using the editor, drawing mutant patrols, adding dialogue triggers, and importing/exporting JSON level files are provided on the web app.