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.
19 lines
451 B
Lua
19 lines
451 B
Lua
-- 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
|