Skip to content

Commit

Permalink
Moved joystick touch pad to the middle for portrait, to see how easy …
Browse files Browse the repository at this point in the history
…it is to use from there.
  • Loading branch information
lanceewing committed Mar 18, 2024
1 parent 8e89649 commit 399a95f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/com/agifans/agile/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ private void draw(float delta) {
int agiScreenBase = (int)(viewportManager.getHeight() - (viewportManager.getWidth() / 1.32));
int midBetweenKeybAndPic = ((agiScreenBase + 885) / 2);
portraitTouchpad.setY(midBetweenKeybAndPic - 100);
portraitTouchpad.setX(viewportManager.getWidth() - (viewportManager.getWidth() / 2) - 75);
portraitTouchpadStage.act(delta);
portraitTouchpadStage.draw();
joyX = portraitTouchpad.getKnobPercentX();
Expand Down

0 comments on commit 399a95f

Please sign in to comment.