I now actually execute the Lua script in the map state.
The script can't do much, but still.
The mustate now loads styles from the game config file into global variables in the interpreter.'
I intend to use these to implement some menus/widgets/stuff in the musl part.
Added mappings.c/.h that maps some string to integer values and vice versa.
It helps with checking the keyboard in the Musl state.
It will also be useful later in the Lua scripts.
I also added some documentation for the functions exposed to Musl.
There is now a CellObj in the Lua scripts that you get with a call to the C('selector') function.
At the moment the CellObj has only a :set() method that changes the cells identified by the selectors, but more to come later.
Renamed the 'gradient()' function in the bmp module to 'lerp()'.
mapstate now has a setTimeout function in Lua that works like JavaScript's
Added functions CLEAR_PARTICLES, DELAY, PIXEL(x,y) and LINE() to the Musl state