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:
18
init.lua
Normal file
18
init.lua
Normal 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
|
||||
Reference in New Issue
Block a user