consistent naming; moving functions from level.lua to gameworld.lua
This commit is contained in:
@@ -66,10 +66,5 @@ function Fairy:DoPhysics()
|
||||
self.vel.x = self.vel.x + random_x
|
||||
self.vel.y = self.vel.y + random_y
|
||||
-- move
|
||||
if not self:isCollidingAt(self.pos.x + self.vel.x, self.pos.y, objects.collisions) then
|
||||
self.pos.x = self.pos.x + self.vel.x
|
||||
end
|
||||
if not self:isCollidingAt(self.pos.x, self.pos.y + self.vel.y, objects.collisions) then
|
||||
self.pos.y = self.pos.y + self.vel.y
|
||||
end
|
||||
self:CollisionMove()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user