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
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();