Fixed controller variables
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user