Draw projectile bullet
This commit is contained in:
1 parent
b29abea6f0
commit
d8dafbe9b4
1 file changed
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user