summaryrefslogtreecommitdiff
path: root/core/src/kz/ilotterytea/maxon/player
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-10-20 00:41:54 +0500
committerilotterytea <iltsu@alright.party>2024-10-20 00:41:54 +0500
commit46ecba0190a78dbefdd432f23399ba54e0bcc766 (patch)
tree2d712dfa9f93f92d0fee3688d70e50f25cd69266 /core/src/kz/ilotterytea/maxon/player
parent9282501ff88bf0c23db3f6db6e2a1f7f7fdc4fe9 (diff)
upd: player position and camera angle for mobile devices
Diffstat (limited to 'core/src/kz/ilotterytea/maxon/player')
-rw-r--r--core/src/kz/ilotterytea/maxon/player/DecalPlayer.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/kz/ilotterytea/maxon/player/DecalPlayer.java b/core/src/kz/ilotterytea/maxon/player/DecalPlayer.java
index 8f4e601..5c5256c 100644
--- a/core/src/kz/ilotterytea/maxon/player/DecalPlayer.java
+++ b/core/src/kz/ilotterytea/maxon/player/DecalPlayer.java
@@ -10,6 +10,7 @@ import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.math.collision.BoundingBox;
import com.badlogic.gdx.math.collision.Ray;
import kz.ilotterytea.maxon.MaxonGame;
+import kz.ilotterytea.maxon.utils.OsUtils;
import java.util.ArrayList;
@@ -28,7 +29,12 @@ public class DecalPlayer {
this.decal = Decal.newDecal(this.regions.get(this.regionIndex));
this.decal.setScale(0.025f);
- this.decal.setPosition(2.0f, 1.75f, 2.0f);
+
+ if (OsUtils.isMobile) {
+ this.decal.setPosition(-5f, 1.75f, 4f);
+ } else {
+ this.decal.setPosition(2f, 1.75f, 2f);
+ }
float width = this.decal.getWidth() / (this.decal.getScaleX() * 1000f);
float height = this.decal.getHeight() / (this.decal.getScaleY() * 1000f);