nearly there
This commit is contained in:
@@ -8,6 +8,12 @@ function ClearWalls(walls)
|
||||
end
|
||||
end
|
||||
|
||||
function ClearPowerUps(powerup)
|
||||
for i, v in ipairs(powerup) do
|
||||
v.collider:destroy()
|
||||
end
|
||||
end
|
||||
|
||||
function StopAllMusic()
|
||||
-- TODO: maybe find a way
|
||||
-- to find all 'streaming'
|
||||
@@ -68,5 +74,8 @@ function RestartGame()
|
||||
--Clear Walls
|
||||
ClearWalls(Walls)
|
||||
|
||||
--ClearPowerUps
|
||||
ClearPowerUps(PowerUps)
|
||||
|
||||
-- Done!
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user