changed framerate and fixed controls

This commit is contained in:
sam
2023-11-24 12:47:46 +01:00
parent 3815cf6b9c
commit 0e3f8f50d6

View File

@@ -75,13 +75,13 @@ let Playerposy = 300;
async function Movementloop() {
if (booleanArray[1]) {
Playerposx + 1;}
Playerposx += 2;}
if (booleanArray[3]) {
Playerposx -= 1;}
if (booleanArray[0]) {
Playerposy += 1;}
Playerposx -= 2;}
if (booleanArray[2]) {
Playerposy -= 1;}
Playerposy += 2;}
if (booleanArray[0]) {
Playerposy -= 2;}
}
@@ -89,7 +89,7 @@ if (booleanArray[2]) {
function setup(){
// create a canvas element and append it to the body
createCanvas(1250, 600);
frameRate(244);
// disable the outline of shapes
noStroke();
}