Signing by reference name, like the team's Timbre app: the Troglodyte App Store Connect integration, the harvest--seasons certificate, and the App Store profile harvest for com.oatmealgames.harvestseason. Build numbers are one past TestFlight's latest (app 6822823738), 1 when there's none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
61 lines
3.5 KiB
Markdown
61 lines
3.5 KiB
Markdown
# iOS test port
|
|
|
|
A one-day port to find out how Harvest Season runs on an iPhone before committing to touch
|
|
controls. Played with a Bluetooth controller; measured with an on-screen readout.
|
|
|
|
## What the phone build changes
|
|
|
|
All behind `MobilePort` (game/scripts/mobile_port.gd), so the desktop build is unchanged:
|
|
|
|
- **Renderer:** the Mobile renderer (Godot's default for phones). No `ToonLook`: the farm keeps
|
|
its standard materials. The 3D view renders at 0.75 of the screen's resolution (Settings > 3D
|
|
resolution scale; pixel size 1).
|
|
- **No co-op:** the main menu's "Play with a friend" and the settings' Co-op section are hidden;
|
|
the microphone is never opened (`audio/driver/enable_input.mobile=false`).
|
|
- **Leaving the app pauses the game.**
|
|
- **Perf test** (the iOS preset's `perf_test` feature): `PerfTest` shows frame times over
|
|
everything, with buttons to jump to night 20 or 30, unlock everything, end the phase, and
|
|
shield the scarecrow. It's a release export, so the times are what players would get.
|
|
|
|
project.godot also gains ETC2/ASTC texture import (iOS needs it) and landscape either way up.
|
|
|
|
To see the phone build on desktop: `godot --path . --rendering-method mobile -- --mobile --perf-test`.
|
|
|
|
## One-time setup
|
|
|
|
1. **Connect the repo.** It lives at `ssh://git@git.troglodyte-cave.com:2222/trog/harvest.git`
|
|
(branch `main`). In Codemagic: Add application > Other (any Git URL) > that URL, with an SSH
|
|
key whose public half is a deploy key on the repo. The host has to be reachable from the
|
|
internet on port 2222. Codemagic reads `codemagic.yaml` from the branch it builds.
|
|
2. **App ID** (developer.apple.com > Certificates, Identifiers & Profiles > Identifiers > +):
|
|
done: explicit `com.oatmealgames.harvestseason`, default capabilities.
|
|
3. **App record:** done (Apple ID `6822823738`, in `codemagic.yaml` for build numbers). In
|
|
TestFlight > Internal Testing > + : a group with automatic distribution, with you in it.
|
|
4. **API key:** done. The team's key is the Codemagic integration `Troglodyte` (shared with Timbre).
|
|
5. **Signing:** done (Codemagic: Team settings > codemagic.yaml settings > Code signing
|
|
identities). Certificate `harvest--seasons`; App Store profile `harvest` for
|
|
`com.oatmealgames.harvestseason`, expiring 2027-10-14. Both are referenced by name in
|
|
`codemagic.yaml`. The app has to be in the same Codemagic team as these signing files.
|
|
|
|
## Build and install
|
|
|
|
Start the `ios-perf-test` workflow on the `main` branch (manual start). It takes about
|
|
15-25 minutes, then App Store Connect processes the upload (another 5-30 minutes). Install it
|
|
from the TestFlight app on the phone.
|
|
|
|
Pair a controller in iOS Settings > Bluetooth (Xbox, PlayStation, or MFi). Menus also work by tap.
|
|
|
|
## The test
|
|
|
|
1. New vacation (hold to skip the intro) and get to the first morning.
|
|
2. Tap **Night 20**, **Unlock all**, **Shield: on**, then **Next phase** until the night starts.
|
|
3. Play the night with the controller: fight as usual, so crowds and combat are real. The shield
|
|
keeps the scarecrow standing; the farm can still be stripped.
|
|
4. At dawn the night's line reads "done". Screenshot it.
|
|
5. Next morning: **Night 30** and repeat.
|
|
6. Optional: one more night at 3D resolution scale 1.0 and one at 0.5 (Settings), to see how
|
|
much the GPU matters.
|
|
|
|
Send back the screenshots, the phone model, and whether it got hot. The numbers to compare with
|
|
desktop (docs/thirty-night-soak.md): frame avg and p99 against the 16.7 ms of 60 FPS (33.3 ms at
|
|
30), and physics, which holds the farm's tick, against its 0.4-1.6 ms average on desktop.
|