From ddc4a992fb3f4b2f41dca60ae89db153a6982675 Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Tue, 28 Nov 2023 13:48:42 +0100 Subject: [PATCH] changed game.js back to classless --- web/game.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/game.js b/web/game.js index f9d394c..19ee239 100644 --- a/web/game.js +++ b/web/game.js @@ -29,8 +29,8 @@ let predictiveBounceX; let predictiveBounceY; let time = 0; -let Bullets = []; -let myBullet = new bullet(); + +//let myBullet = new bullet(); // the function setup() is called once when the page is loaded function setup() { // create a canvas element and append it to the body @@ -146,7 +146,7 @@ function draw() { keyPressed(); life(); // draw background - myBullet.draw(); + //myBullet.draw(); background(0, 0, 0, 100); if (!(lives == 0)) { // draw player @@ -195,4 +195,4 @@ function draw() { } } -} \ No newline at end of file +}