diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2022-05-25 22:55:57 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2022-05-25 22:55:57 +0200 |
| commit | 344737031e5bbad5f24469aabf45be6535c893f3 (patch) | |
| tree | 89f7312b24a2f9f6c7d48ddb1f0b5874939f6d21 /src/game.ts | |
| parent | 2f8b8c87fb2062313afea7b625ccb20d1bea95b9 (diff) | |
| download | 1942-344737031e5bbad5f24469aabf45be6535c893f3.tar.gz 1942-344737031e5bbad5f24469aabf45be6535c893f3.tar.zst 1942-344737031e5bbad5f24469aabf45be6535c893f3.zip | |
Numbers and better rectangles
Diffstat (limited to 'src/game.ts')
| -rw-r--r-- | src/game.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.ts b/src/game.ts index fafa0ee..6a09871 100644 --- a/src/game.ts +++ b/src/game.ts @@ -56,6 +56,7 @@ export function cpuLoop() { // const collidingEnemy = enemies.filter(e => p.collides(e)); // const collidingBullets = bullets.filter(b => p.collides(b)); // if (collidingBullets.length || collidingEnemy.length) playerDied(collidingEnemy[0]) + // playerDied({} as Enemy) setTimeout(cpuLoop, 1000 / keys.fps) } |
