Mapeditor
The map editor can be started by pressing 'F8'. Don't load it twice, otherwise you will need to restart Luxinia (fixed in next Sparc release).
Loading and saving
At the moment, the mapeditor lacks a GUI element for loading / saving maps.
This is done using the console, which can be opened by pressing F1.
Type
saveworld("myworld.lua")to save your map as "myworld.lua"loadworld("myworld.lua")to load your map as "myworld.lua"
defaultlevel = "myworld.lua"
You can type then saveworld() or loadworld() without passing the worldname, plus you can test the gameplay.
GUI
The Mapeditor shows a huge GUI:
![]() |
You can fold and unfold the menus by clicking on their titles (works for the mainframe as well).
Location bar

Rendering bar

The game is using layer 4 and 5 for displaying its stuff, so the this is a suggestion which layers to use:
- Layer 0: draw without depthtest (much cheaper than drawing WITH depthtest) and without depthmask background stuff, mostly with additive blendmode
- Layer 1: draw models that require depthtests
- Layer 2-3: draw blended stuff that requires depthtests
- Layer 6-9: Stuff that needs to be drawn after the player objects were drawn (for example foggy blends)
Blendmode: set a blendmode. Additive blendmodes are most simple to use and do not require sorting.
The renderscale and the color can be used to set the displayed size of the object and its modulated color value (won't work for models).
Be aware that you shouldn't place too many billboards on top of each other - drawing large billboards many times have serious impact on the FPS rates on slower machines. Try to keep the number of redrawn pixels (multiple billboards on top of each other) at most at 5, the less the better.
Light

Game

Trigger

