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
|
|
@ -5,7 +5,7 @@ extends Node3D
|
|||
## and parks in the farmyard by the house with a honk; the two farmers (tinted mannequins) get
|
||||
## out, walk to the house door, wave to the scarecrow waiting by the yard, and cheer. A cutscene
|
||||
## camera follows the car, then frames the yard; the HUD hides behind letterbox bars. Fire,
|
||||
## interact, or Space / Enter / A skips to the end. finished is emitted once it's
|
||||
## interact, Space / Enter / A, or a tap skips to the end. finished is emitted once it's
|
||||
## over (or skipped), and EndPanel shows the final assessment over the scene.
|
||||
## Built when it starts, after the game is over, so nothing is created during play. The car (with
|
||||
## its roof luggage, which sways on the turns and tips forward as it stops), the farmers, the
|
||||
|
|
@ -250,6 +250,7 @@ func _stop_engine() -> void:
|
|||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if not running or done:
|
||||
return
|
||||
if event.is_action_pressed("ui_accept") or event.is_action_pressed("interact") or event.is_action_pressed("fire"):
|
||||
var tap := event is InputEventScreenTouch and (event as InputEventScreenTouch).pressed # phones: taps don't press fire
|
||||
if event.is_action_pressed("ui_accept") or event.is_action_pressed("interact") or event.is_action_pressed("fire") or tap:
|
||||
skip()
|
||||
get_viewport().set_input_as_handled()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue