From d8dafbe9b4cac61b94bbe2a095ea518877dab82a Mon Sep 17 00:00:00 2001 From: zenoamaro Date: Sat, 29 Jun 2019 23:23:23 +0200 Subject: [PATCH] Draw projectile bullet --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 0890a25..4212265 100644 --- a/main.js +++ b/main.js @@ -328,6 +328,7 @@ function drawProjectiles() { if (!projectile) return; const {x, y, player} = projectile; drawLine(projectiles, prevProjectile.x, prevProjectile.y, x, y, player.c); + plot(foreground, clamp(0, projectile.x, W), clamp(0, projectile.y, H), 'white'); } function fadeProjectiles(amount) {