diff --git a/init.lua b/init.lua index c50914b..be6123c 100644 --- a/init.lua +++ b/init.lua @@ -8,7 +8,7 @@ local state = STATE_LIST local modules = {} -- [{id, version, name, rect={x,y,w,h}}] local quit_buttons = {} -- {yes = rect, no = rect} -local screen_w, screen_h = 1280, 720 -- matched ENGINE_WINDOW_DEFAULT_WIDTH/HEIGHT +local screen_w, screen_h -- queried in init() via engine.window.size() (P.3.5) -- CI-conditional self-exit (matches spine-prototype's pattern). -- Interactive runs (no SPOREL_CI=1) loop until ESC or quit-confirm. @@ -36,6 +36,7 @@ local COLOR_MODAL = 0x303030FF local hit = engine.spatial.aabb_contains_point function init(ctx) + screen_w, screen_h = engine.window.size() local list = engine.module.list() local y = 80 for i, m in ipairs(list) do