A one-day port to measure a late night on an iPhone before committing to touch controls (docs/ios-test-port.md). - MobilePort: on phones (the "mobile" feature) no ToonLook (standard materials, Mobile renderer), 3D at 0.75 resolution scale, co-op hidden, microphone never opened, and leaving the app pauses. `-- --mobile` and `-- --perf-test` turn the same switches on for desktop. - PerfTest (the iOS preset's "perf_test" feature): frame time, physics, render CPU and GPU readout, a per-night summary (avg, p99, worst), and tap buttons for night 20/30, unlock all, next phase, and a shield. CampaignDebug's jumps also work in that release build. - iOS export preset (export project only; bundle com.oatmealgames.harvestseason, team 823T4Q2T3U), an opaque 1024 icon, filled privacy purpose strings, ETC2/ASTC import, landscape both ways. - codemagic.yaml: Godot 4.7.2 export, signing, .ipa, TestFlight upload. Graph update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
1.2 KiB
GDScript
20 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), 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()
|