13 lines
215 B
Lua
13 lines
215 B
Lua
|
field=object:extend()
|
||
|
|
||
|
function field:new(width,height)
|
||
|
self.width=width
|
||
|
self.height=height
|
||
|
self.contents={}
|
||
|
end -- new
|
||
|
|
||
|
function field:update(dt)
|
||
|
for k,v in pairs(self.contents) do
|
||
|
v:update(dt)
|
||
|
end -- for field
|
||
|
end
|