Phones: dual floating thumbsticks (move right, attack left)
TouchSticks: a finger on the right half of the screen is a move stick where it lands (the move_* actions), one on the left half an attack stick (the aim_* actions, with fire held past the aim dead zone, so the weapon attacks that way each time it's ready). Buttons get their touches first; the sticks only act while the scarecrow can, and a pause or freeze lets them go. On phones a tap is also an emulated left click, so fire and offhand lose their mouse buttons and ScarecrowCombat ignores emulated mouse events for its aim device. A held finger still skips the intro, and a tap skips the farmers' return. Docs: the first device run's numbers (night 20 held 60 FPS) and the sticks. Graph update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
59aa97c7a3
commit
8c81d815eb
19 changed files with 3917 additions and 3655 deletions
|
|
@ -19,8 +19,8 @@ extends Node
|
|||
## over GD-Sync (GDSyncLink), with voice chat. In co-op the menus don't pause the farm; the
|
||||
## host's leaving ends the partner's game (back to this menu, which says why), the partner's
|
||||
## leaving leaves the host alone. [M] mutes the microphone.
|
||||
## * On a phone (MobilePort): no ToonLook, no co-op, and leaving the app pauses. The iOS test
|
||||
## build adds PerfTest (frame times and test buttons).
|
||||
## * On a phone (MobilePort): no ToonLook, no co-op, two thumbsticks (TouchSticks), and leaving
|
||||
## the app pauses. The iOS test build adds PerfTest (frame times and test buttons).
|
||||
## Main processes while paused; the farm doesn't. Tests set save_path and settings_path
|
||||
## before adding it to the tree.
|
||||
|
||||
|
|
@ -132,6 +132,11 @@ func _ready() -> void:
|
|||
var hud_layer := farm.get_node_or_null("Hud")
|
||||
if hud_layer != null:
|
||||
hud_layer.add_child(coop_hud)
|
||||
if MobilePort.active(): # the phone's thumbsticks, over the HUD (hidden with it in the menus)
|
||||
var sticks := TouchSticks.new()
|
||||
sticks.name = "TouchSticks"
|
||||
sticks.setup(sim)
|
||||
hud_layer.add_child(sticks)
|
||||
if sim.audio != null:
|
||||
sim.audio.wire_buttons($Menus)
|
||||
_menu_camera = Camera3D.new()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue