Attempt fix script

This commit is contained in:
sam
2023-11-24 12:29:08 +01:00
parent 9d1d0cfc4b
commit 7d3452b88b

View File

@@ -71,17 +71,17 @@ async function disconnect() {
let Playerposx = 500;
let Playerposy = 300;
if (booleanArray) {
if (booleanArray[1]) {
Playerposx += 1;}
if (booleanArray[3]) {
Playerposx -= 1;}
if (booleanArray[0]) {
Playerposy += 1;}
if (booleanArray[2]) {
Playerposy -= 1;}
if (booleanArray[1]) {
Playerposx += 1;}
if (booleanArray[3]) {
Playerposx -= 1;}
if (booleanArray[0]) {
Playerposy += 1;}
if (booleanArray[2]) {
Playerposy -= 1;}
}
// the function setup() is called once when the page is loaded
function setup(){