diff --git a/web/background.png b/web/background.png new file mode 100644 index 0000000..1b7aad8 Binary files /dev/null and b/web/background.png differ diff --git a/web/game.js b/web/game.js index 9c3e4a5..03960c4 100644 --- a/web/game.js +++ b/web/game.js @@ -69,6 +69,7 @@ function setup() { // disable the outline of shapes Movementloop() noStroke(); + bg = loadImage('web/background.png'); } function score() { @@ -181,7 +182,7 @@ function draw() { phase(); // draw background //myBullet.draw(); - background(0, 0, 0, 100); + background(bg); if (homescreenOn == true) { homescreen();