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>
21 lines
1.2 KiB
GDScript
21 lines
1.2 KiB
GDScript
class_name MobilePort
|
|
extends RefCounted
|
|
## The phone build's switches (the iOS preset in export_presets.cfg; docs/ios-test-port.md):
|
|
## * active(): a phone (the "mobile" feature). The farm keeps its standard materials (Main
|
|
## doesn't add ToonLook: the outline needs Forward+, phones run the Mobile renderer), the 3D
|
|
## view renders at GameSettings.resolution_scale instead of pixelated, co-op is hidden (the
|
|
## main menu's button and the settings' Co-op section), two thumbsticks move and attack
|
|
## (TouchSticks), and leaving the app pauses the game.
|
|
## The microphone is never opened (audio/driver/enable_input.mobile in project.godot).
|
|
## * perf_test(): the iOS preset's "perf_test" feature. Main adds PerfTest (the frame-time
|
|
## readout and test buttons), and CampaignDebug's jumps work in that release build.
|
|
## On desktop, `-- --mobile` and `-- --perf-test` after the usual arguments turn the same switches
|
|
## on, to see the phone build without a phone (add --rendering-method mobile for its renderer).
|
|
|
|
|
|
static func active() -> bool:
|
|
return OS.has_feature("mobile") or "--mobile" in OS.get_cmdline_user_args()
|
|
|
|
|
|
static func perf_test() -> bool:
|
|
return OS.has_feature("perf_test") or "--perf-test" in OS.get_cmdline_user_args()
|