- [NEW] Actualitzat per a usar l'última versió de mini (v1.3.10)

This commit is contained in:
2025-11-11 11:23:21 +01:00
parent 447f5bfdb7
commit 5f05f6e568
3 changed files with 20 additions and 20 deletions

View File

@@ -9,7 +9,7 @@ mapa={
mapa.w,mapa.h=w,h
if mapa.surface~=-1 then surf.free(mapa.surface) end
mapa.surface=surf.new(w,h)
map.set(mapa.surface)
map.surf(mapa.surface)
for y=0,127 do
for x=0,127 do
map.tile(x,y,0)
@@ -39,7 +39,7 @@ mapa={
if num_layers==2 then
mapa.front_layer=surf.new(mapa.w,mapa.h)
map.set(mapa.front_layer)
map.surf(mapa.front_layer)
for y=0,mapa.h-1 do
local line = io.read()
@@ -50,7 +50,7 @@ mapa={
end
end
end
map.set(mapa.surface)
map.surf(mapa.surface)
io.close(file)
end
end,
@@ -63,7 +63,7 @@ mapa={
io.write(mapa.w.."\n")
io.write(mapa.h.."\n")
if mapa.front_layer then io.write("2\n") else io.write("1\n") end
map.set(mapa.surface)
map.surf(mapa.surface)
for y=0,mapa.h-1 do
for x=0,mapa.w-1 do
io.write(map.tile(x,y)..",")
@@ -71,7 +71,7 @@ mapa={
io.write("\n")
end
if mapa.front_layer then
map.set(mapa.front_layer)
map.surf(mapa.front_layer)
for y=0,mapa.h-1 do
for x=0,mapa.w-1 do
io.write(map.tile(x,y)..",")