Open kfchou opened 1 year ago
This is another case of #5492, when a 'creep' is defeated it's clip is removed, these are then filtered from the creep list like so:
function FilterCreeps() {
var i = 0;
while(i < this.creeps.length) {
if("" + this.creeps[i] == "") {
this.creeps.splice(i, 1);
} else {
i++;
}
}
}
In Ruffle the strings won't get changed when the clip is removed so creeps.length == 429
, but Tick()
does the following check:
if(this.finished && this.creeps.length == 0) {
this.ShowFinish();
}
Which will never get hit in Ruffle, so the pop up won't show.
Describe the bug
Desktop Tower Defense does not conclude after surviving all levels.
Expected behavior
After beating the game, a pop up appears with score submission, or a message that the game has concluded, and return to main menu.
Affected platform
Online demo
Operating system
Windows 10
Browser
Chrome
Additional information
The version of the game is hosted on https://kbhgames.com/game/desktop-tower-defense