Commit graph

156 commits

Author SHA1 Message Date
Forrest
5d14fed3ec Merge #42: panels at phone scale
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:31:15 -04:00
Forrest
d3390614ee tasks: check off #38 (touch action buttons); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:31:03 -04:00
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
c439925cd1 Merge #38: touch action buttons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:27:24 -04:00
Forrest
e435b76aa2 #38: touch action buttons
TouchButtons (phones only, Main adds it beside TouchSticks): Pause, Fear, Bomb,
Patch, Use (word from the new read-only Interactions.focus_info()) and Build,
round Sketch buttons that press the existing actions for at least one physics
tick, shown only when they can do something and hidden whenever the tree is
paused or a menu, panel or sign is up. Columns follow TouchSticks.move_on_right
(now a variable); both join "touch_controls" with apply_settings (Swap sticks),
which Main calls at startup; Prompts.move_side() reads the live sticks. Stick
fingers keep their drags over buttons. New Sketch icons: fear, patch, use,
build, pause. Test: game/tests/mobile/buttons_test.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:25:57 -04:00
Forrest
3a3b3c8fc3 tasks: check off #41 (menus and settings at phone scale); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:24:49 -04:00
Forrest
abbe12b92d Merge #41: menus and settings at phone scale
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:21:19 -04:00
Forrest
0c401171f3 #41: menus and settings at phone scale
On phones the main menu, pause menu, question box, and settings fit the
scaled canvas inside the safe area, with buttons and rows at least 44 pt
tall (19.5:9 at 1.6x, the iPhone SE at the 1.7 cap, 4:3 iPads). The
pause menu puts its buttons in a column beside the rest.

Phone settings: Audio, Touch (Interface size, Swap sticks, Camera
distance, Haptics, and a short touch-controls guide), Display (3D
resolution scale), and Gameplay. The list scrolls by dragging, and a
slider only moves after a mostly sideways drag. GameSettings saves the
touch settings under [touch] and applies them live (&"touch_controls",
the follow camera on phones). A hit buzzes the phone with Haptics on.
Desktop menus are unchanged. Test: game/tests/mobile/menus_test.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:20:15 -04:00
Forrest
47fa2591f5 tasks: check off #39 (tappable HUD); graph update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:15:38 -04:00
Forrest
619ddcde5e Merge #39: tappable HUD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:12:18 -04:00
Forrest
49e94874a6 #39: tappable HUD
On phones (MobilePort.active()) the HUD's widgets take taps through small
STOP hit targets (ScarecrowHud.HitTarget, at least minimum_target()), and
everything beside them is still the thumbsticks':
- hotbar: a tap on a main slot picks it through the number keys' path
  (weapon_k, applied only when combat may switch); no number keys on phones
  (Prompts.hotbar_key)
- backpack: a tap toggles the pouch panel, a finger elsewhere (not on the
  panel) closes it; the panel stays inside safe_rect
- tip box: an × hides tips as Backspace does (Tutorial.hide_tips)
- dialogue: a Skip button on pausing conversations; a tap elsewhere advances
Desktop has no targets and draws as before. Test: mobile/hud_taps_test.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:10:56 -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