diff options
| author | ilotterytea <iltsu@alright.party> | 2024-10-20 00:41:54 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-10-20 00:41:54 +0500 |
| commit | 46ecba0190a78dbefdd432f23399ba54e0bcc766 (patch) | |
| tree | 2d712dfa9f93f92d0fee3688d70e50f25cd69266 /core | |
| parent | 9282501ff88bf0c23db3f6db6e2a1f7f7fdc4fe9 (diff) | |
upd: player position and camera angle for mobile devices
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/player/DecalPlayer.java | 8 | ||||
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java | 2 |
2 files changed, 8 insertions, 2 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); diff --git a/core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java b/core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java index 624ee44..b1a519e 100644 --- a/core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java +++ b/core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java @@ -391,7 +391,7 @@ public class GameScreen implements Screen, InputProcessor { float angle = 256f; if (OsUtils.isMobile) { - angle = 245f; + angle = 155f; } camera.rotate(angle, 0f, 1f, 0f); |
