Enlarge mobile joystick controls

This commit is contained in:
Loïc Wisniewski 2026-09-02 11:19:54 +02:00
commit ec20778215
4 changed files with 46 additions and 19 deletions

View file

@ -23,7 +23,10 @@ signal released
# shorter side. Derived rather than a fixed number of pixels so that
# enlarging the stick's rect enlarges the ring the player actually sees -
# otherwise the touch area grows and the visible control stays small.
const RADIUS_RATIO: float = 0.28
# The scene zones are deliberately wider than they are tall. Forty percent
# makes the resting ring just over twice its former radius while leaving room
# for the floating base to move inside the touch rect.
const RADIUS_RATIO: float = 0.40
@export var max_radius: float = 90.0
@export var deadzone: float = 0.12