doors worxlove .

This commit is contained in:
0x81c 2015-03-15 07:08:35 -04:00
parent 7fcbd9e5da
commit 85dd66b1e4
8 changed files with 105 additions and 24 deletions

View file

@ -80,10 +80,17 @@ function Entity:draw()
end
function Entity:canMove()
if self.collision == "unmoveable" then
return false
if self.collision == "moveable" then
return true
end
return true
return false
end
function Entity:canPassOver()
if self.collision == "none" then
return true
end
return false
end