added background img to background

This commit is contained in:
Mees Roelofsz
2023-12-13 13:01:36 +01:00
parent 6046ff8de9
commit 5f61fda72d

View File

@@ -69,7 +69,7 @@ function setup() {
// disable the outline of shapes // disable the outline of shapes
Movementloop() Movementloop()
noStroke(); noStroke();
//bg = loadImage('web/background.png'); bg = loadImage('web/background.png');
} }
function score() { function score() {
@@ -182,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();