changed game.js back to classless

This commit is contained in:
Mees Roelofsz
2023-11-28 13:48:42 +01:00
parent 308c2a4008
commit ddc4a992fb

View File

@@ -29,8 +29,8 @@ let predictiveBounceX;
let predictiveBounceY;
let time = 0;
let Bullets = [];
let myBullet = new bullet();
//let myBullet = new bullet();
// the function setup() is called once when the page is loaded
function setup() {
// create a canvas element and append it to the body
@@ -146,7 +146,7 @@ function draw() {
keyPressed();
life();
// draw background
myBullet.draw();
//myBullet.draw();
background(0, 0, 0, 100);
if (!(lives == 0)) {
// draw player
@@ -195,4 +195,4 @@ function draw() {
}
}
}
}