doors worxlove .
This commit is contained in:
parent
7fcbd9e5da
commit
85dd66b1e4
8 changed files with 105 additions and 24 deletions
13
entity.lua
13
entity.lua
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue