Fix bug oops.
This commit is contained in:
parent
7cf9c498d7
commit
94e0e2685d
|
@ -136,7 +136,8 @@ end
|
||||||
|
|
||||||
function movePaddle(ticks)
|
function movePaddle(ticks)
|
||||||
if ticks == 0 then return end
|
if ticks == 0 then return end
|
||||||
paddle:moveWithCollisions(paddle.x, paddle.y + ticks*-5)
|
|
||||||
|
local collisions = select(3, paddle:moveWithCollisions(paddle.x, paddle.y + ticks*-5))
|
||||||
for i = 1, #collisions, 1 do
|
for i = 1, #collisions, 1 do
|
||||||
local obj = collisions[i].other
|
local obj = collisions[i].other
|
||||||
if obj:isa(Brick) then
|
if obj:isa(Brick) then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user