Commit graph

146 commits

Author SHA1 Message Date
Forrest
e8729b41e8 #42: panels at phone scale
On phones (MobilePort.active()) the morning sign, the end screens, and the
workbench's and shed's menus sit in the safe area; their long part scrolls
(UiTheme.TouchScroll: a finger drag scrolls and never presses, a tap does)
with Start the day / the end buttons / Close always in view below it; rows
and buttons are at least the touch target; long text wraps. Desktop layout
is unchanged (panels_test checks the 1920x1080 rects against the old ones).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:28:25 -04:00
Forrest
5392ae09af Phones: interface scale capped at 1.7; settings fields for wave 2
The user lowered the cap from 1.8 so the smallest iPhones (SE, 13 mini) keep a canvas about
635 px tall. GameSettings gains swap_sticks, camera_distance (FollowCamera.PHONE_DISTANCE) and
haptics, unsaved for now, so #38's apply_settings and #41's settings can be built in parallel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:48:32 -04:00
Forrest
f072bac176 tasks: check off #35 (interface scale, safe area, mobile test kit); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:45:16 -04:00
Forrest
ad08f83389 Merge #35: interface scale, safe area, and the mobile test kit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:41:49 -04:00
Forrest
8f9031ffdd tasks: check off #37 (platform: back, no Quit, flat labels, camera); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:41:49 -04:00
Forrest
aee60b0ba2 #35: interface scale, safe area, and the mobile test kit
MobilePort: ui_scale() (clampf(4.3 / the screen's shorter side in inches, 1, 1.8) times the
Interface size; 1 on desktop), a size-class fallback (below 500 pt = phone, 1.6) when the
density is 0 or implausible, safe_rect(ci) (the display's safe area mapped into ci's canvas
through the final transform), minimum_target() (44 pt in canvas pixels), and the `forced`
override for tests. The desktop preview (-- --mobile) plays the phone in the window:
--safe-area=l,t,r,b insets it, --dpi=N sets its density, and without --dpi a 16:9-or-wider
window is a 2.7 in phone (about 1.6x) and a squarer one a 6 in iPad (1x).

GameSettings: interface_size (0.8-1.3, saved under [touch]) and apply_scale(), which sets the
window's content_scale_factor (always 1 on desktop). PerfTest shows the screen, density, safe
area, and resulting scale, to check the density on a device.

Test kit: test_mobile (last in SUITES) runs game/tests/mobile/*_test.gd in name order and puts
the root window back between files; mobile/touch.gd sends touches through
Input.parse_input_event; scale_test covers phones, iPads, desktop, the safe rect, and the target;
sticks_test is the 8c81d81 driver's 24 checks. game/tools/capture_mobile.gd takes the phone
screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:40:06 -04:00
Forrest
61066e29ce Merge #37: platform back button, no Quit on phones, flat labels, camera
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:38:41 -04:00
Forrest
eb65b44d01 tasks: check off #46 (sprint as a speed upgrade); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:38:41 -04:00
Forrest
c47e67891e #37: platform back button, no Quit on phones, flat labels, camera
- Android back: application/config/quit_on_go_back=false; Main.go_back()
  (from NOTIFICATION_WM_GO_BACK_REQUEST, phones only) closes the shop or
  pouch panel or leaves build mode, else pauses; paused it closes the
  question, then settings, then resumes (shared with the pause action);
  at the main menu it closes the question or settings, else quits.
- Phones hide the main menu's Quit and the pause menu's Quit the game.
- ScreenLabels.ensure() makes the one ScreenLabels (ToonLook's on
  desktop; Main's on phones, which watch()es the tree for Label3Ds).
  Label sizes grow with the window's content_scale_factor (1 on desktop).
- FollowCamera starts at PHONE_DISTANCE (12 m) on phones.
- MobilePort.forced for tests; game/tests/mobile/platform_test.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:36:26 -04:00
Forrest
7e510bb446 Merge #46: sprint becomes a permanent speed upgrade
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:35:32 -04:00
Forrest
0b465f95bb tasks: check off #36 (prompts in touch words); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:35:32 -04:00
Forrest
962c7b0b93 #46: sprint becomes a permanent speed upgrade
Owning the Sprint upgrade now multiplies the scarecrow's speed by
sprint_speed_mult (1.25) all the time, walking and running, on every
platform; the run clip speeds up to match. The hold-to-sprint burst is
gone: sprint_time, sprint_cooldown, the stamina state in PlayerCharacter
(can_sprint is now has_sprint), and the HUD's stamina bar. The upgrade
keeps its id, cost, and name; its text is "Run 25% faster, always".
The sprint input action stays in project.godot, unused.

Tests: test_scarecrow's sprint checks cover 1x without it, x1.25 with it
(run and walk, clip speed, network strength), 30 s with no time limit,
no cooldown, the next morning, and no platform dependence; test_nights
checks it after the retry and a loaded save; test_economy checks the
text matches the multiplier, the menu row, and that an old save's
{"sprint": 1} still owns it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:32:39 -04:00
Forrest
fac806f0cc Merge #36: prompts in touch words
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:32:12 -04:00
Forrest
9f4a1895bd #36: prompts in touch words
Prompts (game/scripts/prompts.gd) holds every key-naming prompt: on a phone
(MobilePort.active()) it says each in touch words, elsewhere exactly the old
string. World labels drop the key (Gather, Repair, Upgrade to, Upgrades, Shop),
the build ghost says Place / Dismantle, the build bar's line is
"Place · Rotate · Dismantle · Done" and its slots drop the number keys, the
cutscenes say "Hold to skip" / "Tap to skip", the tip footer says
"× hides tips", and the tutorial's tips and the first morning's sign name the
thumbs (sides from TouchSticks), Use, Build, Place, Fear, Bomb, Patch, the
hotbar, and the backpack. MobilePort gains the `forced` test override.
game/tests/mobile/prompts_test.gd checks every phone string and that the
desktop strings are byte for byte as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:30:26 -04:00
Forrest
f0291133fd plan: playable on phones (#35-#46)
Touch controls for every action, an interface scaled for phones inside the safe area, prompts in touch words, platform details, and an Android build; the intro plan this replaces is at 5dbad4c. #46: Sprint becomes a permanent speed upgrade on every platform (the user's call).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:14:13 -04:00
Forrest
8c81d815eb 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>
2026-10-14 13:48:59 -04:00
Forrest
59aa97c7a3 Codemagic: Harvest Season's signing files and App Store Apple ID
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>
2026-10-14 13:15:14 -04:00
Forrest
e836e9d3b0 App icon: the scarecrow portrait
The HUD's scarecrow portrait (Sketch "portrait") in a gold ring on a night-sky-to-field gradient, as an opaque 1024 PNG (assets/pictures/icons/app_icon.png). It's the iOS preset's icon and the project icon, replacing the Godot logo and the placeholder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 13:03:47 -04:00
Forrest
e5ad872175 Merge ios-test-port: iOS test port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 13:00:09 -04:00
Forrest
938a4124df 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>
2026-10-14 12:59:25 -04:00
Forrest
f0059f2e80 init 2026-10-14 12:54:33 -04:00
Forrest
2e68223b5c tasks: check off #33 (opening intro); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:55:41 -04:00
Forrest
c9898a97c8 Merge #33: opening intro cutscene
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:55:18 -04:00
Forrest
c6daf3d217 #33: opening intro cutscene
OpeningIntro (game/scripts/opening_intro.gd) plays on every New vacation
(not Continue, not when hosting co-op): the farmers leave in their loaded
station wagon, "Later that night....", a bickering UFO crew drops a part
whose blue flash brings the scarecrow (hung on a post in its T-pose) to life,
the UFO zooms off, then the loading screen and the first morning's sign.
Hold Space / Enter / A (or E, or the mouse button) 1 s to skip from any
stage; Escape pauses it; Restart the night skips it; Save & quit clears it.
It ends with the farm exactly as new_campaign() leaves it.

Hooks: ReviewPanel keeps the sign down while the intro has the farm (and
only focuses Start when the sign is up); DialogueDirector holds its
conversations and the sign, then intro_over() plays night 1's morning
conversations before the sign; Tutorial hides; FarmAudio gets set_scene /
end_scene (ambience and music held by a cutscene) and stop_cue (the morning
stinger plays with the sign instead); Main wires new_vacation(intro),
blocked, resume's freeze, restart and to_menu.

Tests: test_intro (45 checks); test_flow skips the new intro. Tool:
game/tools/capture_intro.gd saves a frame per stage for the timing review.
Docs: README, RULES, LAYOUT (staging points), PLAYTEST.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:54:24 -04:00
Forrest
d96ef8b5be tasks: check off #29-#32 (opening intro wave 1); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:00:15 -04:00
Forrest
78ff549407 Merge #29: cutscene kit and roof luggage
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:00:01 -04:00
Forrest
c009260d4a #29: cutscene kit and roof luggage
CutsceneKit (static, shared by FarmersReturn and the coming opening intro):
make_car / add_engine, the tinted farmer mannequins (make_farmer, anim_of),
route_curve / reversed / place_on_curve for any point list, make_camera /
move_camera / follow_camera / face, set_hud, and the Letterbox overlay with a
caller-set skip hint. FarmersReturn now uses it and behaves as before.

load_roof piles National Lampoon style luggage on car_002's rack: farm-pack
bags and crates, four primitive suitcases, and a hatbox, stacked from the
roof found in the car mesh's AABB and vertices, three straps pulled taut over
the pile's real outline, and a rolled mattress lashed off the right side. No
collision. Luggage.sway(delta, turn_rate, accel) leans it out on turns and
forward when braking; the ending's drive uses it.

test_flow: the ending's car is loaded, the pile sits on the car mesh's AABB
top, and it sways the right way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:58:50 -04:00
Forrest
f0146c8aa5 Merge #30: forced lighting, intro sounds, scarecrow chest glow
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:51:40 -04:00
Forrest
4b86f655c4 #30: forced lighting, intro sounds, scarecrow chest glow
- DayNight.forced ("" / "morning" / "night") overrides target(); snap()
  still works. DayNight.morning() is the MORNING phase's look.
  lanterns_dark keeps every lantern at 0.
- synth_audio.gd: ufo_hum (4 s loop), ufo_whine, part_fall, life_flash,
  ufo_zoom, car_door, each on its own seed (existing wavs unchanged).
  FarmAudio cues for those plus door_creak (kenney creak1/2), all in
  LOCAL_CUES.
- PlayerCharacter: a blue core glow on the chest bone (BoneAttachment3D):
  an unshaded gem, an additive halo pulled toward the camera, and a weak
  pulsing OmniLight3D. On for every scarecrow; set_core_glow(on) hides
  it. set_tint skips it; the hit flash overlay and ToonLook leave it alone.
- test_look: forced/lanterns_dark, the intro cues, the glow on both
  scarecrows, hit flash intact, set_core_glow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:51:14 -04:00
Forrest
fe08f6602c Merge #31: intro speakers and conversations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:48:56 -04:00
Forrest
9224b65c7a #31: intro speakers and conversations
Speakers farmer, farmers_wife, and big_green_alien (the thief head at
380 px, bigger than the little alien's 300, with a lower voice). Two new
Sketch icons, "farmer" (round face, pinched straw hat, moustache) and
"farmers_wife" (curls, straw sun hat with a ribbon and a flower).
dialogue/intro/departure, flight, and uh_oh with the plan's lines, off
(enabled = false), pause_game, auto_advance 1.6. test_dialogue checks
their lines and speakers, that the director still plays only
morning_day_2, and that the new heads draw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:48:31 -04:00
Forrest
a85c52c07c Merge #32: animated loading screen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:46:56 -04:00
Forrest
a4d60212c5 #32: animated loading screen
LoadingScreen (game/scripts/loading_screen.gd): splash-screen.png cover-scaled
with a slow Ken Burns pan and zoom under a vignette, "Harvest Season" in the
handwritten font with a pen underline written in, a sketched progress bar with
the "ufo" icon bobbing over its leading edge, and "Loading..." with cycling
dots. play(seconds) fades in from black and emits finished once at full
progress; fade_out(time) / stop() take it away. Runs while paused; step(delta)
drives it. test_loading covers timing, restart, fade, stop, and pause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:46:27 -04:00
Forrest
5dbad4c915 plan: opening intro (#29-#34)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:33:54 -04:00
Forrest
655f8e804d farm: remove the two trucks west of the farm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:33:54 -04:00
Forrest
1d92f49d96 Talking-head dialogue: DialogueDirector, DialogueBox, conversations and speakers
Conversations saved in game/resources/dialogue/ play once at their night and
phase in a paper box with talking heads; example: the morning of day 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:33:54 -04:00
Forrest
bbd8012fff updates 2026-10-07 14:50:55 -04:00
Forrest
215e24e246 UI and other changes 2026-10-07 13:41:38 -04:00
Forrest
87b5c11fcf graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 18:06:30 -04:00
Forrest
eac2cb65fe Room for 40 robots; fewer robots and more UFOs in the late nights
The #28 soak's recommendation 2, which the user chose:
- character_pool 48 thieves / 20 breakers -> 32 / 40 (thieves never
  passed 15 at once; breakers filled 20 from night 11).
- make_nights.gd MIX_TO breakers 0.20 -> 0.12 (flat), UFOs 0.15 -> 0.23;
  nights 6-29 regenerated with --force (titles, hints, uids unchanged).
- Night 30: breakers 13 -> 8 base (91 -> 56 played), the 5 moved to its
  UFO groups (70 -> 105), so it stays the biggest night at 511.
RULES.md's nights table and limits follow; the soak report records the
decisions. Full suite: same 24 FAIL lines; nights 5 and 10 now arrive in
full in the scarecrow-less back-to-back test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 18:06:28 -04:00
Forrest
7fe2d06c9e tasks: check off #28 — thirty-night batch #23-#28 merged; graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:59:46 -04:00
Forrest
1fdbecd034 Pooled enemy characters stop animating while hidden
A released, faded, or cleared character was hidden but its AnimationPlayer
kept looping (the #28 soak found 1-55 still animating at the end of a
night, and on through the day). EnemyCharacters._hide stops it; acquire
already clears the clip, so the next enemy's animation starts at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:59:44 -04:00
Forrest
8132567ece Merge task #28: thirty-night soak, pool sizes, and a balance report
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:56:37 -04:00
Forrest
e26e343436 Task #28: thirty-night soak, pool sizes, and a balance report
docs/thirty-night-soak.md: the whole vacation for 3 seeds with the scripted
scarecrow (per-night arrivals planned / arrived / waited / dropped, peak alive
per type, losses, HP at dawn, levels, materials banked, sim tick), character
pools measured on nights 20 and 30 (48/20, 64/28, 48/40), density experiments,
and three things to tune next. Nothing in the game broke; no numbers changed.

soak_night.gd (cycle mode): per-night report as a table and ROW json lines;
the carry-over check counts the Workbench granted after night 1; a lost night
is retried, then (--shield=after) carried on with the scarecrow shielded; the
scripted player buys the corn shooter first, repairs, rebuilds broken
build-plan pieces, and patches at half its real max health; measuring options
--start, --load, --save-at/--save-dir, --stock, --gather=0, --pool, --frame,
--count-scale, --plan-scale.

test_nights _back_to_back: planned-vs-arrived becomes an accounting check
(arrived, or dropped at sunrise with every character of the type in use;
drops match WaveDirector.dropped; spawn_skipped unchanged), still reporting
the planned / arrived / dropped numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 17:55:58 -04:00
Forrest
10390cf382 Debug F8 unlocks everything: every upgrade and shop item at its last level
CampaignDebug.unlock_all (debug builds, not on a co-op partner's machine,
until the vacation ends) grants every upgrade and shed item at its last
level for free through Upgrades.grant_all, which shares the new
Upgrades.level_up with buy(), so each level's effect (max health, pouch,
barrier health) applies as if bought. Not counted as bought in the night
record. In the morning review the retry snapshot is retaken
(CampaignController.retake_morning_snapshot) so a retry keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:54:34 -04:00
Forrest
3f32596034 tasks: check off #27; drop a stale RULES note on the last night's hint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:41:45 -04:00
Forrest
ddb3cb0568 Merge task #27: the thirty nights
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:38:48 -04:00
Forrest
ab1443325a Task #27: the thirty nights
- campaign_nights 5 -> 30. The old night 5 ("The last night") is now night 30, keeping its
  uid, title, hint, and 180 s. It grew to 73 base / 511 played in its three waves, with UFO
  groups added, at speed x1.25 and HP x1.625.
- New hand-authored night 5, "Lights in the sky": night 4's shape plus the first UFOs (two
  single-UFO groups, 14 as played), 24 base.
- New game/tools/make_nights.gd writes nights 6-29 by the plan's recipe (seed 30, sieges on
  10/15/20/25, mix, waves, scales, draft titles and hints) as .tres text with fresh uids. It
  skips existing files unless --force (which keeps their uids), refuses ranges outside 6..29,
  and checks every plan with NightPlan.problems() at the played scales (non-zero exit on any
  problem). Generated nights 6-29 are committed.
- test_nights: the arc (30 plans, breakers from night 3 and UFOs from night 5, no non-siege drop
  over 15% from night 3 on, sieges, last night longest), the per-night scales, the new night 5
  and night 30 designs. The back-to-back run plays nights 1-5, 10, and 30, skipping the rest
  with CampaignDebug.jump_morning.
- test_campaign, test_cycle, test_flow read campaign_nights instead of a hard-coded 5.
- RULES (the vacation, the Night row, the thirty nights and their table, the vacation's end),
  README, and a dated PLAYTEST section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:38:07 -04:00
Forrest
d333ddc4d4 tasks: check off #26
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:24:34 -04:00
Forrest
5fcb87941e Upgrade counts are in levels; day-1 text no longer promises pumpkin bombs
The workbench label, the morning screen and the end screen counted an
upgrade as done at level 1 ("N of 17"); they now count levels bought
(Upgrades.levels_bought / levels_total). Pumpkin bombs arrive at the shed
on day 3, so the first-morning text and the shoot tip say more weapons
arrive over the days instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:24:30 -04:00