Started creation startscreen
This commit is contained in:
@@ -48,6 +48,7 @@ let y5;
|
||||
|
||||
let bulletAmount = 10;
|
||||
|
||||
let Startscreen = new Startscreen(width, height);
|
||||
|
||||
//let myBullet = new bullet();
|
||||
// the function setup() is called once when the page is loaded
|
||||
@@ -61,6 +62,7 @@ function setup() {
|
||||
// disable the outline of shapes
|
||||
Movementloop()
|
||||
noStroke();
|
||||
|
||||
}
|
||||
|
||||
function score() {
|
||||
|
23
web/js/homescreen.js
Normal file
23
web/js/homescreen.js
Normal 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() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user