initial get
This commit is contained in:
parent
125cf7fd6d
commit
bc0537a649
@ -45,7 +45,10 @@ function level:update(dt)
|
|||||||
end
|
end
|
||||||
mposCache = tostring(mpos)
|
mposCache = tostring(mpos)
|
||||||
-- path = (require "lib.pathfinder")(charPos, mpos)
|
-- path = (require "lib.pathfinder")(charPos, mpos)
|
||||||
|
else
|
||||||
|
mposCache = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
self.camera:update(dt)
|
self.camera:update(dt)
|
||||||
self.selector:update(dt)
|
self.selector:update(dt)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -23,4 +23,8 @@ function map:draw()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function map:get(x, y)
|
||||||
|
return self[x][y]
|
||||||
|
end
|
||||||
|
|
||||||
return { new = new }
|
return { new = new }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user