Commit Graph

294 Commits

Author SHA1 Message Date
Z. Cliffe Schreuders
b1686fc5eb feat(css): Enhance minigame styles with max-width and margin for better layout
refactor(js): Remove unused asset loading in preload function
feat(js): Implement optimal scale calculation for pixel-perfect rendering in person chat portraits
2025-11-06 01:54:55 +00:00
Z. Cliffe Schreuders
13f71baa82 feat(ui): Update font sizes for dialogue and speaker name for improved readability 2025-11-06 00:54:08 +00:00
Z. Cliffe Schreuders
f055d6c536 feat(npc): Update conversation flow to handle exit choices and NPC responses 2025-11-05 20:15:33 +00:00
Z. Cliffe Schreuders
2d0e30f157 Add helper NPC dialogue and interactions for mission assistance
- Created a new JSON file for the helper NPC with various dialogue options and interactions.
- Implemented responses for asking about the NPC, unlocking the CEO's office, and providing items.
- Enhanced trust-building mechanics with the NPC, allowing for item exchanges and hints based on player actions.
- Updated existing NPC dialogue to integrate new features and improve player guidance throughout the mission.
2025-11-05 20:15:26 +00:00
Z. Cliffe Schreuders
78cc3beab4 feat(person-chat): Implement click-through mode for dialogue advancement and enhance UI with continue button 2025-11-05 09:18:58 +00:00
Z. Cliffe Schreuders
4daaa87534 feat(npc): Implement conversation state management and enhance NPC interaction features 2025-11-05 01:03:08 +00:00
Z. Cliffe Schreuders
d217e5a02a feat(npc-interaction): Enhance NPC interaction system with click handling and distance checks 2025-11-04 23:25:41 +00:00
Z. Cliffe Schreuders
2c9d3a739c feat(npc-collisions): Implement comprehensive collision setup for NPC sprites including walls and chairs 2025-11-04 22:22:29 +00:00
Z. Cliffe Schreuders
518d8916be feat(person-chat): Implement multi-character support and enhance dialogue handling 2025-11-04 22:11:32 +00:00
Z. Cliffe Schreuders
e0cef60f37 feat(npc): Add talk icon system and update NPC sprite configurations 2025-11-04 21:31:00 +00:00
Z. Cliffe Schreuders
9f82abd072 feat(person-chat): Enhance player interaction by adding scenario data and improving dialogue handling 2025-11-04 14:21:35 +00:00
Z. Cliffe Schreuders
e73a6a038b Add NPC sprite test scenario, server for development, and HTML test pages
- Created a new JSON scenario file for testing NPC sprite functionality.
- Implemented a simple HTTP server with caching headers for development purposes.
- Added an HTML page for testing NPC interactions, including system checks and game controls.
- Introduced a separate HTML page for testing item delivery through person chat interactions.
2025-11-04 14:16:48 +00:00
Z. Cliffe Schreuders
5fd7ad9307 feat(interactions): Enhance interaction distance calculation for diagonal movements 2025-11-01 11:14:42 +00:00
Z. Cliffe Schreuders
6aa6fd4beb feat(sound): Refactor sound manager initialization to reuse instance across preload and create phases 2025-11-01 11:07:54 +00:00
Z. Cliffe Schreuders
cb8a9399a9 feat(npc): Remove unregisterNPC method and associated cleanup logic 2025-11-01 10:43:48 +00:00
Z. Cliffe Schreuders
1bd037d969 feat(npc): Enhance message handling by adding metadata support in addMessage method 2025-11-01 10:42:37 +00:00
Z. Cliffe Schreuders
2a5eed9963 feat: Implement comprehensive sound management system for Break Escape
- Created SoundManager class for centralized audio management using Phaser's audio system.
- Integrated 34 sound assets, including UI interactions, item collection, and lock attempts.
- Developed UI sound helpers for seamless attachment to DOM elements.
- Updated game.js to preload and initialize sound manager, ensuring global access.
- Modified interactions.js, unlock-system.js, and panels.js to incorporate sound feedback.
- Provided extensive documentation, including implementation summary and usage examples.
- Ensured backward compatibility and optimized performance for audio playback.
2025-11-01 08:58:07 +00:00
Z. Cliffe Schreuders
9aae3f9443 feat: Implement centralized sound management system
- Created SoundManager class for handling audio playback using Phaser's sound system.
- Added methods for preloading, initializing, and playing sounds with volume control.
- Integrated UI sound helpers for easier sound attachment to DOM elements.
- Updated game.js to initialize sound manager and preload sounds.
- Modified interactions.js, unlock-system.js, and panels.js to play appropriate sounds on interactions.
- Created SOUND_SYSTEM_QUICK_REFERENCE.md for documentation on sound system usage.
- Optimized NPCBarkSystem and NPCManager with caching and event listener cleanup.
2025-11-01 00:34:26 +00:00
Z. Cliffe Schreuders
e05b4d7903 feat(npc): Add pixel-art avatars for NPCs in bark notifications and update scenario configurations 2025-11-01 00:08:13 +00:00
Z. Cliffe Schreuders
34f1739484 feat(npc): Add audio feedback for NPC bark notifications with message received sound 2025-10-31 21:10:07 +00:00
Z. Cliffe Schreuders
40da85dac4 feat(npc): Enhance NPC interaction with room navigation events and refined greeting logic 2025-10-31 16:31:07 +00:00
Z. Cliffe Schreuders
c80aa5b68d Implement event-driven NPC reactions and fix event dispatcher issues
- Added event emissions for NPC interactions in core game systems:
  - Unlock System: door_unlocked, item_unlocked, door_unlock_attempt
  - Interactions System: object_interacted
  - Inventory System: item_picked_up:*
  - Minigame Framework: minigame_completed, minigame_failed

- Created event-triggered reactions for the helper NPC:
  - Added knots for lockpick pickup, success, failure, door unlock, and object interaction.
  - Implemented state tracking and context-aware responses.

- Updated event mappings in scenario JSON for the helper NPC to respond to various events.

- Fixed global variable references in event emission code to ensure proper event dispatching.

- Added debug logging to verify event emissions and NPC reactions.

- Documented implementation details and testing instructions for new features.
2025-10-31 11:48:43 +00:00
Z. Cliffe Schreuders
99097130f4 feat(npc): Implement NPC Game Bridge with helper NPC functionality
- Added NPCGameBridge class to facilitate interactions between NPCs and game state.
- Implemented methods for unlocking doors, giving items, setting objectives, revealing secrets, adding notes, triggering events, and discovering rooms.
- Introduced a helper NPC that can assist players by unlocking the CEO's office and providing items based on trust levels.
- Created comprehensive documentation for the NPC Game Bridge implementation.
- Updated scenario JSON to include the new helper NPC and its interactions.
- Added Ink story for the helper NPC demonstrating its capabilities.
2025-10-31 10:42:08 +00:00
Z. Cliffe Schreuders
e375537b61 feat: Implement phone badge system for unread messages; redesign bark notifications for better visual integration 2025-10-31 00:25:27 +00:00
Z. Cliffe Schreuders
b1843cd340 feat: Implement phone badge for unread messages; add timed messages for NPCs and update inventory UI 2025-10-30 23:35:13 +00:00
Z. Cliffe Schreuders
5f6cc7e59d feat: Add NPCs and phone interactions to the CEO exfiltration scenario; implement new dialogue for Neye Eve and Gossip Girl 2025-10-30 14:40:54 +00:00
Z. Cliffe Schreuders
b8bed005aa feat: Update minigame controls to use "Notepad" terminology and enhance NPC system initialization 2025-10-30 13:40:34 +00:00
Z. Cliffe Schreuders
01010e7e20 refactor: Remove old phone-messages minigame and transition to phone-chat
- Deleted `phone-messages-minigame.js` and archived related CSS.
- Updated `interactions.js` to exclusively use phone-chat with runtime conversion.
- Enhanced error handling for phone interactions.
- Marked completion of old phone minigame removal in implementation log.
- Added detailed cleanup summary documentation.
2025-10-30 10:16:31 +00:00
Z. Cliffe Schreuders
7a8e8a22a7 feat: Add voice message support to Phone Chat UI; integrate Web Speech API for playback and enhance UI with audio controls 2025-10-30 03:12:31 +00:00
Z. Cliffe Schreuders
f5f7de3d48 feat: Add voice message playback functionality using Web Speech API; implement voice selection and UI controls 2025-10-30 03:07:46 +00:00
Z. Cliffe Schreuders
f369b41547 feat: Implement voice messages in phone chat minigame
- Added support for voice messages prefixed with "voice:" in Ink files.
- Updated UI rendering to display voice message UI with play button and transcript.
- Implemented automatic conversion for scenario JSON with voice properties.
- Created test examples for pure voice messages and mixed content.
- Fixed issues with NPC registration and message duplication in test scenarios.
- Documented feature details, use cases, and testing procedures.
2025-10-30 02:45:05 +00:00
Z. Cliffe Schreuders
99a631f42f feat: Implement timed messages system for NPC interactions; preload intro messages and enhance UI with avatars 2025-10-30 01:31:37 +00:00
Z. Cliffe Schreuders
ef5d85b744 Refactor InkEngine to allow manual control of story continuation; enhance continue method for better text accumulation and logging
Update interactions.js to reference new version of constants

Improve NPCBarkSystem to dynamically import phone-chat minigame and handle fallback UI more gracefully

Modify constants.js to conditionally export GAME_CONFIG based on Phaser availability

Update implementation log for Phone Chat Minigame, detailing completed modules and next steps

Create detailed implementation plan for Phone Chat Minigame, outlining structure, features, and integration points

Add test HTML page for Phone Chat Minigame, including setup, chat tests, and history management functionalities
2025-10-29 19:17:51 +00:00
Z. Cliffe Schreuders
9fffb6b4e4 Add NPC dialogue and interaction scripts
- Created a generic NPC script with conversation handling.
- Developed an Alice NPC script demonstrating branching dialogue and state tracking.
- Implemented a test NPC script for development purposes.
- Added JSON representations for the NPC scripts.
- Created an HTML test interface for NPC integration testing.
- Included event handling and bark systems for NPC interactions.
2025-10-29 13:48:22 +00:00
Z. Cliffe Schreuders
887e5f6443 Add NPC integration planning documents and example scenario
- Created `05_EXAMPLE_SCENARIO.md` with a complete Ink script for the Biometric Breach scenario featuring NPCs Alice and Bob.
- Added `QUICK_REFERENCE.md` as a cheat sheet for NPC system components, event types, and common patterns.
- Introduced `README.md` as an index for NPC integration planning, outlining document structure and key concepts.
2025-10-29 00:18:22 +00:00
Z. Cliffe Schreuders
c4dfa9482a fix: Update lockpick inventory alert message for clarity 2025-10-28 23:29:56 +00:00
Z. Cliffe Schreuders
9ed2c38f70 refactor: Simplify key selection UI method calls by removing parent references 2025-10-28 23:15:26 +00:00
Z. Cliffe Schreuders
94c9caa4eb feat: Add running mechanics with speed and animation multipliers for player movement 2025-10-28 23:02:31 +00:00
Z. Cliffe Schreuders
158d8fb37a fix: Update key visual feedback method to use instance method for flashing lock 2025-10-28 22:47:03 +00:00
Z. Cliffe Schreuders
81d762685d feat: Implement keyboard input pause/resume functionality for minigames 2025-10-28 22:45:41 +00:00
Z. Cliffe Schreuders
f8068ecadd feat: Implement keyPins normalization and conversion logic for accurate cut generation in minigames 2025-10-28 20:09:07 +00:00
Z. Cliffe Schreuders
cf3268e6b5 feat: Normalize keyPins in starting inventory and generate cuts from lock configuration in minigames 2025-10-28 20:01:47 +00:00
Z. Cliffe Schreuders
5cd07b5d4b refactor: remove outdated documentation 2025-10-28 16:11:16 +00:00
Z. Cliffe Schreuders
17ef1e6995 fix: Adjust container height calculation in key selection UI for improved layout 2025-10-28 16:09:20 +00:00
Z. Cliffe Schreuders
5436abe538 feat: Enhance key selection with additional key presets and improve random key generation logic 2025-10-28 16:03:50 +00:00
Z. Cliffe Schreuders
0ded5cae05 refactor: Simplify key generation by using generic names for keys in KeySelection 2025-10-28 14:26:52 +00:00
Z. Cliffe Schreuders
1228bc15fe feat: Normalize keyPins from 0-100 scale to 25-65 scale across scenarios and rooms 2025-10-28 13:31:20 +00:00
Z. Cliffe Schreuders
90fa4d0047 feat: Implement scenario-based keyPins for locks and keys, enhancing lockpicking mechanics 2025-10-28 11:33:54 +00:00
Z. Cliffe Schreuders
004a537936 feat: Enhance chair wall collision handling to ignore low-velocity collisions 2025-10-27 17:59:07 +00:00
Z. Cliffe Schreuders
5d4a44fc70 Refactor: Remove KeyPointGeometry module and update LockpickingMinigamePhaser to use KeyGeometry 2025-10-27 17:49:25 +00:00