Enable rotating player with left CTRL
This commit is contained in:
@@ -41,14 +41,26 @@ public abstract class BaseMapHandler implements MapHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(input.isKeyPressed(Key.KEY_DOWN)) {
|
if(input.isKeyPressed(Key.KEY_LEFT_CONTROL)) {
|
||||||
mainLayer.pushMovement(player.prepareMovement(Direction.DOWN));
|
if(input.isKeyPressed(Key.KEY_DOWN)) {
|
||||||
} else if(input.isKeyPressed(Key.KEY_UP)) {
|
player.setFaceDirection(Direction.DOWN);
|
||||||
mainLayer.pushMovement(player.prepareMovement(Direction.UP));
|
} else if(input.isKeyPressed(Key.KEY_UP)) {
|
||||||
} else if(input.isKeyPressed(Key.KEY_LEFT)) {
|
player.setFaceDirection(Direction.UP);
|
||||||
mainLayer.pushMovement(player.prepareMovement(Direction.LEFT));
|
} else if(input.isKeyPressed(Key.KEY_LEFT)) {
|
||||||
} else if(input.isKeyPressed(Key.KEY_RIGHT)) {
|
player.setFaceDirection(Direction.LEFT);
|
||||||
mainLayer.pushMovement(player.prepareMovement(Direction.RIGHT));
|
} else if(input.isKeyPressed(Key.KEY_RIGHT)) {
|
||||||
|
player.setFaceDirection(Direction.RIGHT);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if(input.isKeyPressed(Key.KEY_DOWN)) {
|
||||||
|
mainLayer.pushMovement(player.prepareMovement(Direction.DOWN));
|
||||||
|
} else if(input.isKeyPressed(Key.KEY_UP)) {
|
||||||
|
mainLayer.pushMovement(player.prepareMovement(Direction.UP));
|
||||||
|
} else if(input.isKeyPressed(Key.KEY_LEFT)) {
|
||||||
|
mainLayer.pushMovement(player.prepareMovement(Direction.LEFT));
|
||||||
|
} else if(input.isKeyPressed(Key.KEY_RIGHT)) {
|
||||||
|
mainLayer.pushMovement(player.prepareMovement(Direction.RIGHT));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user