Actually got to work on Lichen a bit this week. Most of the work is invisible, sadly!
First off, I updated the Verge engine to allow for resizing the current map. A call to
v3.map.resizeLayer(<layer index>, <new width>, <new height>, <offset x>, <offset y>)
will resize a single layer. An important underlying thing to note here is that your Obstruction and Zone layers are always the same size as your bottom-most layer (index 0) so they will get resized along with it. The offset params will let you control where your data gets copied into; so for example if you wanted to add a 10 tile border around the whole map you'd use
v3.map.resizeLayer(0, v3.map.w + 20, v3.map.h + 20, 10, 10)
and you'd get a blank (tile 0) border all the way around. You can use negative offsets to carve out a chunk in the middle of your map if you'd like, too.
Anyway, this was in service of being able to resize maps and create new maps. Creating new maps is not, however, terribly useful without being able to import tilesets or being able to save to some place other than a fixed location, so my next two targets are importing an image as a tileset, and adding a file dialog for saving and loading. Since this stuff isn't in place yet, though, this work is all invisible -- if you go into the code and actually write some resize lines you can see it happening but there's no way to actually trigger this within the editor yet.
Other small miscellaneous things I did:
- When in VSP mode, removed the grid lines on the map behind the mode
- Fixed a problem with 'get' in the console
- Upped the resolution that the editor uses; now actually uses 640x480 so we've got reasonable space for UI
- Added a simple reusable text button to my UI classes