Skip to content

Commit

Permalink
added load screen I AM DONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GOOD NIG…
Browse files Browse the repository at this point in the history
…HT <3

holy moly, hope you enjoyed it, and hope you have a greast summer!
  • Loading branch information
DrSpaniel committed Apr 22, 2024
1 parent 72c25e4 commit 706f131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 3 additions & 6 deletions projects/Wint24/final/shipGame/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ let initialSpeed;
let initialFrequency;
let bg;
let intro; //intro bg
let load;
let end; //end screen
let lastShipX; //to save ships last spot when explodes to put explosion image
let lastShipY;
Expand Down Expand Up @@ -197,6 +198,7 @@ function setup() {
bg = loadImage("assets/images/bgs/space.jpg");
intro = loadImage("assets/images/bgs/intro.jpg");
end = loadImage("assets/images/bgs/end.jpg");
load = loadImage("assets/images/bgs/load.jpg");
initialSpeed = 1.5; // Reset the initial speed
initialFrequency = 0; // Reset the initial frequency
ship = new Ship(); // Create the ship object
Expand Down Expand Up @@ -384,12 +386,7 @@ function draw() {
//}
}
} else {
background(0);
fill(255, 255, 255);
noStroke();
textSize(90);
textAlign(width / 4, height / 4);
text("loading....", width / 2, height / 2);
background(load);
}
}

Expand Down

0 comments on commit 706f131

Please sign in to comment.