From 7a83057a3f9c5d38de41f77d77572d2eaf5ed33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=96Archisman=20Khanra?= Date: Tue, 8 Oct 2024 12:04:37 +0530 Subject: [PATCH] Firing Feature Improved --- .vscode/settings.json | 3 +++ Alien.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/Alien.js b/Alien.js index d45669f..3dbd1e8 100644 --- a/Alien.js +++ b/Alien.js @@ -199,7 +199,7 @@ class Bullet { this.height = 15; this.x = x; this.y = y; - this.speed = 7; + this.speed = 8; } draw() { @@ -368,7 +368,7 @@ restartButton.addEventListener("click", startGame); document.addEventListener("keydown", (e) => { keys[e.code] = true; if (e.code === "Space" && !shootingInterval) { - shootingInterval = setInterval(shootBullet, 300); + shootingInterval = setInterval(shootBullet, 100); } });