Best game ever

This commit is contained in:
Eric Ratliff
2025-06-25 22:39:41 -05:00
parent 694cc903c8
commit 95adad39f0
7 changed files with 217 additions and 7 deletions

View File

@@ -19,6 +19,7 @@ class Asteroid {
}
this.isGolden = isGolden;
this.hitsLeft = isGolden ? 3 : 1;
console.log(`Spawned asteroid, isGolden: ${isGolden}, hitsLeft: ${this.hitsLeft}`);
}
update() {