From 5f61fda72d6e9501759a145e6aafda09d1710a4b Mon Sep 17 00:00:00 2001 From: Mees Roelofsz Date: Wed, 13 Dec 2023 13:01:36 +0100 Subject: [PATCH] added background img to background --- web/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/game.js b/web/game.js index 3fd65ea..03960c4 100644 --- a/web/game.js +++ b/web/game.js @@ -69,7 +69,7 @@ function setup() { // disable the outline of shapes Movementloop() noStroke(); - //bg = loadImage('web/background.png'); + bg = loadImage('web/background.png'); } function score() { @@ -182,7 +182,7 @@ function draw() { phase(); // draw background //myBullet.draw(); - background(0, 0, 0, 100); + background(bg); if (homescreenOn == true) { homescreen();