This is the source code of the level editor for Spaceshipment
Currently, the editor opens into the last file in the levels folder (sorted alphabetically). To open a different level, use Ctrl+O
Ctrl+Q
to close the appCtrl+N
to create a new levelCtrl+O
to open a level fileCtrl+S
to save to the current fileCtrl+Shift+S
to save asCtrl+Alt+S
to save incrementally (if you were working on a filemylevel.obl
, saving incrementally will save the file asmylevel001.obl
andCtrl S
will now save to this file. Pressing again will save asmylevel002.obl
, thenmylevel003.obl
and so on)Alt+[1-5]
to set the window scaleF1
to show hints!F2
to take a 400x240 screenshotB
to toggle the background image, which is found by searching for an image file with the same name as the level (but with a png file extension)
- Hold
RMB
to select any object to drag it around A
orN
to spawn a new planetW
orL
to spawn a new wallX
,D
orBackspace
to delete a planet while holding itSpace
to enter Aim ModeH
to toggle grab indicators (e.g. the circles around the ends of walls)I
to invert a planet's mass, toggling it between a regular and anti- planetCtrl+D
to duplicate the currently selected planet
While holding or hovering over a planet or the target, change its size/mass with the scroll wheel. Scaling a planet down far enough will turn it into an antiplanet, which pushes the player away instead of attracting them.
You can also use the arrow keys to adjust the position of a body using the arrow keys (while having it selected)
Esc
to go back to edit modeSpace
orRMB
to launch- Aim the player with the mouse. Bringing the mouse closer to the player will have a lower launch strength
- You can also aim with the arrow keys, just like in the game! Moving the mouse will overwrite where you aimed with the arrow keys so be careful not to move it until you launch
The trajectory line shows where the player will fly if you launch. The white part of the line represents how far the player will be able to see in the actual game
This is where the player will actually fly, until they crash
Escape
to go back to Edit ModeR
to go back to Aim ModeSpace
to pause the simulation[1-4]
to set the simulation speed
When the player has either crashed or reached the target
Escape
to go back to Edit ModeR
to go back to Aim Mode