Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Eugene Goh
2021-01-24 10:48:19 +08:00
85 changed files with 188 additions and 583 deletions

View File

@@ -60,8 +60,9 @@ class Hero extends GameObject {
let id = setInterval(() => {
if (this.cooldown > 0) {
this.cooldown -= 100;
} else {
clearInterval(id);
if(this.cooldown === 0) {
clearInterval(id);
}
}
}, 200);
}