Closed ROODAY closed 10 years ago
Why not just clear all arrays and such upon hitting replay? I think that would be the most simple solution.
The arrays are all cleared. This issue wasn't there before, I think it cropped up when we made enemies a global. I'll revert that in the next commit
After hitting replay, there will be undefined enemies hitting the player, causing a crash. Someone try editing the for x in array loops in the replay hook at the bottom of initgame with array.indexof(object), array.splice(index,1)