Simple question I hope.
I have a table keeping track of asteroids that are spawned. When the game is over and I press the try again button, I reset the score to 0 and go back to the start menu… but when I press play again, the asteroids are all still spawned and the game ends instantly. I need to figure out how to empty the table but not completely delete the table when I press the try again button.
Any tips would be greatly appreciated, thanks!