iOS test port: phone build switches, PerfTest overlay, Codemagic workflow
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>
This commit is contained in:
parent
f0059f2e80
commit
938a4124df
46 changed files with 65141 additions and 1881 deletions
|
|
@ -88,6 +88,12 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
s.strip()
|
||||
|
||||
|
||||
## Whether the jumps (jump_morning, unlock_all) work: debug builds, and the iOS test build's
|
||||
## release export (MobilePort.perf_test, PerfTest's buttons).
|
||||
static func allowed() -> bool:
|
||||
return OS.is_debug_build() or MobilePort.perf_test()
|
||||
|
||||
|
||||
## Debug builds, in the morning review only: to the morning of the next (step 1) or previous
|
||||
## (step -1) day, within the vacation. The farm stays as it is and nights_survived follows as
|
||||
## night - 1. It's the campaign's own new-morning path (CampaignController.load_state with the
|
||||
|
|
@ -98,7 +104,7 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
## alone. Returns whether it moved.
|
||||
func jump_morning(step: int) -> bool:
|
||||
var s := campaign.state
|
||||
if not OS.is_debug_build() or s.phase != CampaignController.Phase.MORNING or campaign.remote_request.is_valid():
|
||||
if not allowed() or s.phase != CampaignController.Phase.MORNING or campaign.remote_request.is_valid():
|
||||
return false
|
||||
var night := clampi(s.night + step, 1, campaign.config.campaign_nights)
|
||||
if night == s.night:
|
||||
|
|
@ -122,7 +128,7 @@ func jump_morning(step: int) -> bool:
|
|||
## it (the morning snapshot is retaken); later in the day a retry goes back to that morning
|
||||
## without it. Nothing is saved until the next morning's autosave. Returns the levels it added.
|
||||
func unlock_all() -> int:
|
||||
if not OS.is_debug_build() or campaign.is_over() or campaign.remote_request.is_valid():
|
||||
if not allowed() or campaign.is_over() or campaign.remote_request.is_valid():
|
||||
return 0
|
||||
var n := Upgrades.grant_all(campaign, sim.structures if sim != null else null)
|
||||
if campaign.state.phase == CampaignController.Phase.MORNING:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue