sam
2023-12-13 13:02:22 +01:00
2 changed files with 2 additions and 1 deletions

BIN
web/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

@@ -69,6 +69,7 @@ function setup() {
// disable the outline of shapes // disable the outline of shapes
Movementloop() Movementloop()
noStroke(); noStroke();
bg = loadImage('web/background.png');
} }
function score() { function score() {
@@ -181,7 +182,7 @@ function draw() {
phase(); phase();
// draw background // draw background
//myBullet.draw(); //myBullet.draw();
background(0, 0, 0, 100); background(bg);
if (homescreenOn == true) { if (homescreenOn == true) {
homescreen(); homescreen();