Add second failure mode.
This commit is contained in:
parent
e3cf1f7b1b
commit
7cf9c498d7
|
@ -137,6 +137,12 @@ 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)
|
paddle:moveWithCollisions(paddle.x, paddle.y + ticks*-5)
|
||||||
|
for i = 1, #collisions, 1 do
|
||||||
|
local obj = collisions[i].other
|
||||||
|
if obj:isa(Brick) then
|
||||||
|
endGame()
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function moveBall()
|
function moveBall()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user