diff --git a/data/game.lua b/data/game.lua index 42de882..ebf79ce 100644 --- a/data/game.lua +++ b/data/game.lua @@ -194,10 +194,10 @@ function viewport_update() local vp_x = viewp.x local vp_y = viewp.y - local vp_center_offset_x = (viewp.width >> 1) - local vp_center_offset_y = (viewp.height >> 1) + local vp_center_offset_x = (viewp.width // 2) + local vp_center_offset_y = (viewp.height // 2) - vp_x = abad.x - vp_center_offset_x + vp_x = abad.x+(abad.w/2) - vp_center_offset_x if vp_x < 0 then vp_x = 0 end vp_y = abad.y - vp_center_offset_y diff --git a/data/requirements.lua b/data/requirements.lua index 4ce76e2..325ad93 100644 --- a/data/requirements.lua +++ b/data/requirements.lua @@ -4,13 +4,13 @@ local parts = {} function reqs_init() local version=sys.version() - print(version) + -- print(version) for part in string.gmatch(version, "[^.]+") do table.insert(parts, tonumber(part)) end - print(parts[1].." "..versio_req[1]) - print(parts[2].." "..versio_req[2]) - print(parts[3].." "..versio_req[3]) + -- print(parts[1].." "..versio_req[1]) + -- print(parts[2].." "..versio_req[2]) + -- print(parts[3].." "..versio_req[3]) states:next() end @@ -23,6 +23,7 @@ function reqs_draw() surf.cls(16) draw.text("Es requerix mini "..table.concat(versio_req, "."),20,20,2) + draw.text("Executant amb mini "..table.concat(parts, "."),20,30,2) end function reqs_end()