Started creation startscreen

This commit is contained in:
sam
2023-12-05 15:48:55 +01:00
parent bdd19f536f
commit abefdf3870
2 changed files with 25 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ let y5;
let bulletAmount = 10; let bulletAmount = 10;
let Startscreen = new Startscreen(width, height);
//let myBullet = new bullet(); //let myBullet = new bullet();
// the function setup() is called once when the page is loaded // the function setup() is called once when the page is loaded
@@ -61,6 +62,7 @@ function setup() {
// disable the outline of shapes // disable the outline of shapes
Movementloop() Movementloop()
noStroke(); noStroke();
} }
function score() { function score() {

23
web/js/homescreen.js Normal file
View File

@@ -0,0 +1,23 @@
class Startscreen {
constructor(width, height) {
this.width = width;
this.height = height;
}
setup() {
createCanvas(this.width, this.height);
}
draw() {
circle(100, 100, 100)
}
update() {
}
}