Enlarge mobile joystick controls
This commit is contained in:
parent
7892a162f3
commit
ec20778215
4 changed files with 46 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue