walls now properly get destoryed
This commit is contained in:
parent
ff40a5507b
commit
2cd9f263e6
@ -2,12 +2,10 @@
|
|||||||
-- all objects
|
-- all objects
|
||||||
-- Used in map switching and restarting!
|
-- Used in map switching and restarting!
|
||||||
|
|
||||||
function ClearWalls()
|
function ClearWalls(walls)
|
||||||
for w in pairs(Walls) do
|
for i = #walls, 1, -1 do
|
||||||
Walls[w] = nil
|
walls[i]:destroy()
|
||||||
end
|
end
|
||||||
|
|
||||||
Walls = {}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function StopAllMusic()
|
function StopAllMusic()
|
||||||
@ -43,7 +41,7 @@ function RestartGame()
|
|||||||
ClearBullets(Bullets2)
|
ClearBullets(Bullets2)
|
||||||
|
|
||||||
--Clear Walls
|
--Clear Walls
|
||||||
--ClearWalls()
|
ClearWalls(Walls)
|
||||||
|
|
||||||
-- Done!
|
-- Done!
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user