Fixed controller variables

This commit is contained in:
sam
2023-11-24 14:17:25 +01:00
parent ea7c1ac278
commit 9ad8cadc7f

View File

@@ -109,13 +109,13 @@ function keyPressed() {
async function Movementloop() {
if (booleanArray[1]) {
Playerposx += 2;}
cirX += speed;}
if (booleanArray[3]) {
Playerposx -= 2;}
cirX -= speed;}
if (booleanArray[2]) {
Playerposy += 2;}
cirY -= speed;}
if (booleanArray[0]) {
Playerposy -= 2;}
cirY += speed;}
}
function object_collision() {