Skip to content

Commit

Permalink
Experiment move of landscape icons away from corners.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanceewing committed Mar 19, 2024
1 parent c8e470f commit a0f58f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/main/java/com/agifans/agile/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ private void draw(float delta) {
batch.draw(backIcon, viewportManager.getWidth() - 116, 20);
} else {
// Landscape
batch.draw(joystickIcon, 8, viewportManager.getHeight() - 104);
batch.draw(fullScreenIcon, viewportManager.getWidth() - 104, viewportManager.getHeight() - 104);
batch.draw(backIcon, viewportManager.getWidth() - 104, 8);
batch.draw(keyboardIcon, 8, 0);
batch.draw(joystickIcon, 16, viewportManager.getHeight() - 112);
batch.draw(fullScreenIcon, viewportManager.getWidth() - 104, viewportManager.getHeight() - 112);
batch.draw(backIcon, viewportManager.getWidth() - 112, 16);
batch.draw(keyboardIcon, 16, 0);
}

batch.end();
Expand All @@ -318,7 +318,7 @@ private void draw(float delta) {
joyY = portraitTouchpad.getKnobPercentY();
} else {
// Landscape
int joyWidth = 96;//150;
int joyWidth = 96;
landscapeTouchpad.setSize(joyWidth, joyWidth);
landscapeTouchpad.setY(viewportManager.getHeight() - (viewportManager.getHeight() / 2) - (joyWidth / 2));
landscapeTouchpad.setX(1920 - joyWidth - 8);
Expand Down

0 comments on commit a0f58f9

Please sign in to comment.