[FIX] Informa de la versió del runtime de mini

[FIX] Viewport centrat en l'X de l'abad
This commit is contained in:
2026-05-24 10:06:53 +02:00
parent 6aa100da9e
commit 9cbe4d0075
2 changed files with 8 additions and 7 deletions
+3 -3
View File
@@ -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
+5 -4
View File
@@ -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()