- Esboçant els mòduls bàsics
This commit is contained in:
19
data/mapa.lua
Normal file
19
data/mapa.lua
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user