scripts/build/untrusted.js(and enables debug features).
scripts/build/untrusted.min.js(and disables debug features).
To run the game locally, you need to set up a local server to serve
index.html(this step is necessary due to Access-Control-Allow-Origin restrictions).
First install http-server if you haven't already:
npm install http-server
Build your own mod in the
To add a new level, create a jsx file in /levels/bonus and add the level filename to the
bonusLevelsarray in game.js.
If you are adding any new commands that the player can use, make sure to add them to
#END_EDITABLE#surround editable lines -
#}#wrap editable sections (parts of lines) -
#END_PROPERTIES#surround the properties object at the start of the file. Available properties include: -
commandsIntroduced: array of new commands introduced in the level (see
mapProperties: optionally contains any of the following: -
allowOverwrite: if true, placed static objects can be overwritten by other objects -
keyDelay: specifies the lag, in milliseconds, between player keystrokes (default: 0) -
refreshRate: the refresh rate of the level, in milliseconds (required for dynamic objects with
intervalproperties to work correctly) -
showDrawingCanvas: if true, the drawing canvas overlay is displayed -
showDummyDom: if true, a dummy DOM will be displayed instead of the regular map -
music: name of the background track for the level (see
startingMessage: message displayed at the bottom of the screen when the level starts (if any) -
version: increase the level version whenever you update a level -
nextBonusLevel: load another level automatically when this one is solved -
#END_OF_START_LEVEL#should be the first and last line of the
To add a new background music track, add an MP3 file (that you have permission to use) to the /music and add a new entry to the
tracksarray in sound.js.
We'd like to thank:
You can listen to the full soundtrack here.
The music that appears in Untrusted, in order, is:
This work is dual-licensed.