movement restrictions

This commit is contained in:
2021-12-27 11:46:57 +01:00
parent 526f0c369c
commit 5f6e23b921
5 changed files with 71 additions and 23 deletions

View File

@@ -25,6 +25,10 @@ function Entity:changeState(name)
-- printChangeState to "..name)
end
-- function Entity:isMoveAllowed(point)
-- return point.x, point.y
-- end
function Entity:changeAnimation(name)
self.currentAnimation = self.animations[name]
end