Commit Graph

85 Commits

Author SHA1 Message Date
Steven Wroblewski 07c3b996d7 feat(save): extend GameState to v2 — outfit and held items persisted per character
- Add held_left/held_right fields to CharacterData
- Add get/set_character_outfit and get/set_character_held_item to GameState
- get_save_data now returns version:2 with character_outfits and character_held_items
- apply_save_data resets both dicts when keys absent (empty-dict reset safe)
- 11 new tests in test_game_state.gd — 147/147 passing
2026-05-09 00:12:33 +02:00
Steven Wroblewski 09033b9401 fix(test): use get_node_or_null in detach position test per project convention 2026-05-09 00:09:53 +02:00
Steven Wroblewski ca1d20781e feat(items): add HoldableItem with hand slot detection, fix detach_item position
- Character registers in "characters" group on _ready for group scanning
- detach_item saves/restores global_position after reparenting
- New HoldableItem base class: scans "characters" group on drag_released,
  attaches to nearest free hand within 60px radius, detaches on pickup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 00:03:25 +02:00
Steven Wroblewski 628f97fff5 docs: add Sprint 17 implementation plan (Hand-Slots + Outfits, 147 tests) 2026-05-09 00:00:36 +02:00
Steven Wroblewski 835651a9cc feat(snap-points): merge Sprint 16 — 25 SnapPoints across 12 rooms, 115 tests 2026-05-08 22:42:54 +02:00
Steven Wroblewski 0d3788246a feat(snap-points): add SnapPoints to all 2.OG and Garten rooms (Ultrasound, DeliveryRoom, Nursery, GardenParty)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 22:40:45 +02:00
Steven Wroblewski 8cae50bc11 feat(snap-points): add SnapPoints to all 1.OG rooms (XRay, Pharmacy, Lab, PatientRoom) 2026-05-08 22:32:57 +02:00
Steven Wroblewski 7848b7a979 feat(snap-points): add SnapPoints to all EG rooms (Reception, GiftShop, Restaurant, EmergencyRoom) 2026-05-08 22:30:12 +02:00
Steven Wroblewski cb4e4951fe docs: add Sprint 16 implementation plan (Snap-Point System, 25 snap points across 12 rooms) 2026-05-08 22:27:56 +02:00
Steven Wroblewski 48b9e8f8f3 feat(sprint-15): merge Character v2 — SnapPoint, SnapReceiver, AnimState, OutfitLayers, HandSlots 2026-05-08 22:15:41 +02:00
Steven Wroblewski ce697edd2b chore: update Godot import cache 2026-05-08 22:15:38 +02:00
Steven Wroblewski 2f5e9d99a6 feat(snap-receiver): implement snap detection, position snapping, and pose animation trigger
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 22:12:18 +02:00
Steven Wroblewski 60fba44316 feat(character): add hand slot API (attach/detach/get_held_item/is_hand_free) 2026-05-08 22:09:56 +02:00
Steven Wroblewski 1a9d916293 feat(character): add outfit layer API (set/clear/get_outfit per layer 1-3) 2026-05-08 22:07:53 +02:00
Steven Wroblewski 9be67c8dfe feat(character): add animation state API (set/get_animation_state) 2026-05-08 22:02:59 +02:00
Steven Wroblewski 15ac8666f8 feat(character-data): add outfit array field for three outfit layer slots 2026-05-08 22:01:18 +02:00
Steven Wroblewski 2c576ad419 feat(character): add AnimatedSprite2D, OutfitLayers, HandSlots, SnapReceiver to Character scene
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 21:59:30 +02:00
Steven Wroblewski 80cecf732d feat(snap-receiver): add SnapReceiver stub (full implementation in sprint-15 task 8) 2026-05-08 21:57:47 +02:00
Steven Wroblewski cc5f205a7e feat(snap-point): add SnapPoint node with pose, baby_only filter, and occupant tracking
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 21:56:50 +02:00
Steven Wroblewski 33a1c0aaf9 chore: add agent definitions for gdscript-implementer, spec-reviewer, quality-reviewer 2026-05-07 22:22:11 +02:00
Steven Wroblewski 65e17caaf9 docs: add comprehensive Game Design Document (GDD) covering all systems and sprints 15-22 2026-05-07 21:58:34 +02:00
Steven Wroblewski 325dc97645 chore(tooling): merge GUT v9.6.0 TDD setup — 42 unit tests for GameState, RoomNavigator, GiftBox 2026-04-17 23:05:24 +02:00
Steven Wroblewski 100fcef593 feat(home): merge Sprint 14 — Zuhause & Garten area with HomeButton, GiftBox, TeaPot, GardenParty 2026-04-17 23:05:15 +02:00
Steven Wroblewski a89238b08e docs(claude): update testing conventions to reflect GUT TDD workflow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:49:57 +02:00
Steven Wroblewski d905f837e8 feat(gift-box): add GiftBox scene and FSM implementation 2026-04-17 22:45:44 +02:00
Steven Wroblewski 1e445263a7 test(gift-box): add unit tests for CLOSED/OPENING/OPEN state machine 2026-04-17 22:45:26 +02:00
Steven Wroblewski 4d74f19490 fix(room-navigator): sync implementation with Sprint 14 canonical version 2026-04-17 22:43:26 +02:00
Steven Wroblewski 286498804d test(room-navigator): add missing is_at_home and go_to_hospital tests
Adds 7 new test cases covering home/hospital navigation state:
- is_at_home() initial state and transitions
- go_to_home() with idempotence check
- go_to_hospital() state restoration and guards
- is_at_home flag cleanup on room navigation

Implements corresponding methods in RoomNavigator:
- is_at_home(): Returns home state
- go_to_home(): Navigates to home (0,0) and saves hospital position
- go_to_hospital(): Returns to previously saved hospital location
- _go_to_room_internal(): Helper to avoid flag interference

All 34 tests passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:41:59 +02:00
Steven Wroblewski 297b57a3c1 test(room-navigator): add unit tests for floor/room state and camera navigation 2026-04-17 22:39:09 +02:00
Steven Wroblewski e3a93d3c52 test(game-state): add unit tests for character positions, object states, and save round-trip 2026-04-17 22:36:53 +02:00
Steven Wroblewski 978c8a5c80 chore(tooling): add GUT test infrastructure and smoke test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:35:08 +02:00
Steven Wroblewski c8fb2d959f chore(tooling): install GUT v9.6.0 test framework
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:33:12 +02:00
Steven Wroblewski 257ff18a8b docs: add GUT TDD setup plan 2026-04-17 22:22:48 +02:00
Steven Wroblewski d0ea95ea47 feat(main): integrate Home/GardenParty below Floor0 with bidirectional navigation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 21:25:48 +02:00
Steven Wroblewski 0247c30d45 feat(garden): add GardenParty scene with table, gifts, teapot, balloons, and return button 2026-04-17 21:24:17 +02:00
Steven Wroblewski a4620a7f14 feat(teapot): add TeaPot with tap-to-pour tilt animation 2026-04-17 21:23:03 +02:00
Steven Wroblewski da3c934e5d feat(gift-box): add GiftBox with tap-to-open lid animation and gift reveal 2026-04-17 21:21:39 +02:00
Steven Wroblewski 033d38887f fix(home-button): add busy guard against double-tap during navigation transition 2026-04-17 21:20:23 +02:00
Steven Wroblewski 1a5d7918ab feat(home-button): add HomeButton component for hospital/garden navigation 2026-04-17 21:18:52 +02:00
Steven Wroblewski e7d0036c61 fix(navigator): kill active tween before starting new navigation to prevent camera jitter 2026-04-17 21:17:58 +02:00
Steven Wroblewski 819f18b64c feat(navigator): add go_to_home / go_to_hospital with home_entered / hospital_entered signals 2026-04-17 21:16:07 +02:00
Steven Wroblewski 9f0ed163ae docs: add Sprint 14 and earlier plan files 2026-04-17 21:15:07 +02:00
Steven Wroblewski d897d84831 chore: add .worktrees/ to .gitignore 2026-04-17 21:14:26 +02:00
Steven Wroblewski 34c59710d5 docs: mark Sprint 11-13 as complete 2026-04-17 19:39:45 +02:00
Steven Wroblewski af2fd51ab2 feat(floor2): wire up all three second-floor rooms with navigation arrows 2026-04-17 16:36:56 +02:00
Steven Wroblewski 5f7ef73d4f feat(nursery): add Nursery room with rail and three rocking cradles 2026-04-17 16:35:15 +02:00
Steven Wroblewski 2303195207 feat(delivery): add DeliveryRoom with animated DeliveryBed 2026-04-17 16:34:22 +02:00
Steven Wroblewski c1f480ba69 feat(ultrasound): add Ultrasound room with exam table and UltrasoundMachine 2026-04-17 16:33:10 +02:00
Steven Wroblewski 5ea3a52ed4 feat(nursery): add Cradle component with pendulum rocking animation 2026-04-17 16:31:49 +02:00
Steven Wroblewski dfdf40ba8d feat(delivery): add DeliveryBed component with mama-arrives baby-appears animation 2026-04-17 16:30:31 +02:00