Fixed controller variables
This commit is contained in:
@@ -109,13 +109,13 @@ function keyPressed() {
|
|||||||
|
|
||||||
async function Movementloop() {
|
async function Movementloop() {
|
||||||
if (booleanArray[1]) {
|
if (booleanArray[1]) {
|
||||||
Playerposx += 2;}
|
cirX += speed;}
|
||||||
if (booleanArray[3]) {
|
if (booleanArray[3]) {
|
||||||
Playerposx -= 2;}
|
cirX -= speed;}
|
||||||
if (booleanArray[2]) {
|
if (booleanArray[2]) {
|
||||||
Playerposy += 2;}
|
cirY -= speed;}
|
||||||
if (booleanArray[0]) {
|
if (booleanArray[0]) {
|
||||||
Playerposy -= 2;}
|
cirY += speed;}
|
||||||
}
|
}
|
||||||
|
|
||||||
function object_collision() {
|
function object_collision() {
|
||||||
|
Reference in New Issue
Block a user