walljumps
This commit is contained in:
@@ -158,7 +158,8 @@ function Entity:getBoundingBox(animation,top,left,bottom,right)
|
||||
self.boxCollision.to.y = animation.imgs[1]:getHeight()/2 + bottom
|
||||
end
|
||||
|
||||
-- returns true if theres a collision at that point. also marks collisioned tile as collision true
|
||||
-- checks if the the reciever would collide with an object if it was positioned at the given point.
|
||||
-- also marks collisioned tile as collision true
|
||||
function Entity:isCollidingAt(x,y,object)
|
||||
for _, collision in pairs(object) do
|
||||
if collision.disable then
|
||||
|
||||
Reference in New Issue
Block a user