Scaffold sporel-module-map-editor package

Empty launchable module with deps on lib-core.maps 0.4.0, render,
camera, input, and the fa_terrain_v1 asset alias. Renders the
default 4x4 empty work-map; interactive editing wired in
subsequent commits.
This commit is contained in:
Calic
2026-05-24 01:04:44 +02:00
commit 9d41ba8890
4 changed files with 62 additions and 0 deletions

18
init.lua Normal file
View File

@@ -0,0 +1,18 @@
-- sporel-module-map-editor v0.1.0
-- Interactive map editor; full wiring lands in subsequent commits.
local maps = require("lib-core.maps")
local work_map_id = maps.load("maps/work.map.json")
maps.set_current(work_map_id)
maps.load_textures(engine.module.asset_aliases())
engine.print("map-editor: scaffold loaded, map_id=" .. work_map_id)
function update(ctx, dt)
-- TODO: wired in later commits
end
function draw()
maps.draw_map()
end