- Esboçant els mòduls bàsics

This commit is contained in:
2023-01-25 19:56:40 +01:00
parent 8027cd616b
commit 4f67b8307b
6 changed files with 76 additions and 1 deletions

19
data/mapa.lua Normal file
View File

@@ -0,0 +1,19 @@
mapa={
w=128,
h=128,
surface=nil,
new = function(w,h)
mapa.w,mapa.h=w,h
if mapa.surface~=nil then freesurf(mapa.surface) end
mapa.surface=newsurf(w,h)
setmap(mapa.surface)
end,
load = function(filename)
end,
save = function(filename)
end
}