Commit Graph

49 Commits

Author SHA1 Message Date
Z. Cliffe Schreuders
17848115a1 Implement NPCLazyLoader for per-room NPC loading and refactor related systems
- Introduced NPCLazyLoader class to handle NPC loading on a per-room basis, optimizing memory usage and performance.
- Updated the create() function to utilize the new lazy loading mechanism for NPCs in the starting room.
- Refactored loadRoom function to support asynchronous NPC loading, ensuring NPCs are registered before room visuals are created.
- Adjusted PersonChatMinigame to load NPCs from the current room context, enhancing NPC management.
- Updated scenarios to reflect the new NPC structure, moving NPC definitions from scenario root to individual rooms.
2025-11-07 00:33:22 +00:00
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
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
e0cef60f37 feat(npc): Add talk icon system and update NPC sprite configurations 2025-11-04 21:31:00 +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
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
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
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
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
94c9caa4eb feat: Add running mechanics with speed and animation multipliers for player movement 2025-10-28 23:02:31 +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
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
2e23d50aec Refactor scenarios: Remove deprecated XML files and update JSON scenarios with starting inventory items. Adjust room creation logic to prevent sprite creation for starting inventory items. Update scenario select paths for consistency. 2025-10-25 23:28:25 +01:00
Z. Cliffe Schreuders
6f4cfd43c8 Enhance office room layout and interactions
- Updated room_office2.tmj to adjust object positions and dimensions for better alignment.
- Added new objects and refined existing ones to improve gameplay experience.
- Modified TiledItemPool in rooms.js to support regular and table items separately, ensuring proper item matching and prioritization.
- Improved interaction handling for swivel chairs, allowing them to be kicked and spin upon collision with walls.
- Updated object physics to handle swivel chair collisions dynamically, enhancing realism.
- Revised scenario details in cybok_heist.json for clarity and improved narrative flow.
2025-10-24 09:59:11 +01:00
Z. Cliffe Schreuders
28becd0772 Enhance TiledItemPool: Update getUnreservedItems to exclude conditional items and add inventory item handling in createRoom to prevent sprite creation for marked items. 2025-10-22 13:46:34 +01:00
Z. Cliffe Schreuders
1b313fbdaa Implement keyboard controls for player movement and interaction
- Added keyboard input handling for movement using arrow keys and WASD.
- Integrated spacebar for jump functionality and 'E' key for interacting with nearest objects.
- Enhanced player movement logic to prioritize keyboard input over mouse movement.
- Created visual effects for player jumping, including cooldown management and overlay animations.
2025-10-22 13:20:05 +01:00
Z. Cliffe Schreuders
21a3c40026 Remove Deprecated Files: Delete unused asset lists, minigame usage documentation, and room loading summaries to streamline the project. Update CSS for container and password minigames to improve layout consistency. Refactor image source references in minigames to utilize texture keys for better asset management. 2025-10-22 11:43:17 +01:00
Z. Cliffe Schreuders
48b1ad3bbf Refactor Lockpicking Minigame: Update button functionality for mode switching between key and lockpicking modes. Introduce new icons for keyway, password, and pin in the inventory. Enhance interaction logic for locked objects and doors, including visual indicators. Clean up CSS styles for improved layout and user experience. Remove unused assets and streamline code for better performance. 2025-10-22 00:10:26 +01:00
Z. Cliffe Schreuders
6c06aeafe7 Add PIN Minigame: Introduce a new minigame for PIN entry, featuring a digital keypad, attempt logging, and visual feedback for correct and incorrect inputs. Implement CSS styles for the minigame interface and integrate it into the existing framework. Update index.html to include the new CSS file and register the minigame in the minigame manager. Add test page for functionality and ensure compatibility with the pin-cracker item for enhanced gameplay experience. 2025-10-13 23:45:53 +01:00
Z. Cliffe Schreuders
051b90aaa8 Add Phone Messages Minigame: Introduce a new minigame for interacting with phone messages, including voice and text message playback, voice selection, and observation display. Update index.html to include the new CSS file and integrate the minigame into the existing framework. Add test page for functionality and enhance interaction logic for phone objects in the game. 2025-10-13 18:48:14 +01:00
Z. Cliffe Schreuders
fd33160114 Enhance Object Interaction System: Refactor input handling to centralize object interaction logic in the main scene, allowing for more efficient detection of interactable objects. Introduce a new helper function to find objects at clicked positions and prevent player movement during interactions. Update room object click handlers to utilize the new system, improving gameplay dynamics and maintainability. 2025-10-13 12:04:23 +01:00
Z. Cliffe Schreuders
ea15e7d2c8 Add animated plant assets and update room configurations: Introduce new animated plant images for enhanced visual effects in the game. Update room JSON and TMJ files to include these assets, ensuring proper integration with the existing room management system. Refactor player effects to trigger animations when interacting with animated plants, improving gameplay dynamics. 2025-10-13 11:22:35 +01:00
Z. Cliffe Schreuders
40edca9fc7 Add Codebase Review Document and Refactor Key Systems: Introduce a comprehensive review of the codebase organization, highlighting areas for improvement and recent refactoring successes. Refactor key-lock and unlock systems for better modularity and maintainability, consolidating logic into dedicated modules. Update relevant files and documentation to reflect these changes, ensuring a clearer structure and improved performance. 2025-10-12 23:11:32 +01:00
Z. Cliffe Schreuders
d46fa79718 Implement Minigames for Bluetooth Scanner, Biometrics, and Lockpick Set: Transition Bluetooth and biometrics functionalities to dedicated minigames, enhancing user interaction and gameplay experience. Introduce new CSS styles for each minigame and update the main game logic to support these changes. Remove legacy systems for biometrics and Bluetooth management to streamline code and improve maintainability. 2025-10-11 02:25:50 +01:00
Z. Cliffe Schreuders
9cc382e61d Remove legacy room management system: Delete the rooms_new.js file, which contained the previous room management logic and depth layering approach. This change is part of the transition to a new modular system for room management and interactions, ensuring improved maintainability and integration with updated game mechanics. 2025-10-10 23:48:40 +01:00
Z. Cliffe Schreuders
7c23395b05 Add Room Management and Collision Systems: Introduce a new room management system with simplified depth layering for object rendering. Implement collision management and door systems for improved player interactions. Refactor existing room logic to enhance modularity and maintainability, separating concerns into dedicated modules for doors, collisions, and object physics. Update relevant files to ensure seamless integration with the game environment. 2025-10-10 23:27:47 +01:00
Z. Cliffe Schreuders
ebef1bcd12 Add new assets and update image references: Introduce fingerprint kit and workstation images to the project. Update inventory CSS for improved styling and adjust image loading paths in game.js to reflect new asset locations. Comment out unused object scales in rooms.js for clarity. 2025-10-10 19:08:11 +01:00
Z. Cliffe Schreuders
b8c8c79f86 Add Notes Minigame: Implement interactive note display and inventory integration
Introduce a new Notes Minigame that allows players to view and interact with notes in a notepad-style interface. The minigame supports adding notes to the inventory, displaying observations, and includes navigation features such as previous/next buttons and search functionality. Update relevant files for integration with the existing game systems, including interaction and inventory management. Add test HTML for verifying minigame features and include necessary assets for the notepad background.
2025-10-10 02:39:28 +01:00
Z. Cliffe Schreuders
e8db636f45 Add new assets and update room definitions: Introduce a comprehensive list of available object assets in available_objects.txt. Add multiple new object images and room JSON/TMJ files for room_ceo2, room_closet2, room_office2, and room_servers2. Update existing room files to enhance gameplay experience and ensure proper asset integration. Implement scripts for managing corrupted GID references and external tileset removal to maintain map integrity. 2025-10-10 00:18:04 +01:00
Z. Cliffe Schreuders
16f57e8ffe Enhance room reception functionality: Add a new wall layer to JSON and TMJ files for improved room structure. Implement custom collision boxes for wall tiles in rooms.js to enhance player interactions. Introduce player bump effect when stepping over floor items, improving gameplay dynamics and visual feedback. 2025-10-07 17:29:54 +01:00
Z. Cliffe Schreuders
401e4319f7 Update room reception assets and implement table collision logic: Modify JSON and TMJ files to adjust object IDs and image paths for tables. Enhance room.js to add collision detection for tables, ensuring proper interaction with player characters. Update tileset version for improved asset management. 2025-10-07 14:01:08 +01:00
Z. Cliffe Schreuders
ee4117a651 Add new assets and scripts for object management: Introduce a new tileset JSON file and an update script to ensure all objects are included. Add multiple object images and update HTML for improved asset integration. Remove outdated assets and enhance room definitions for better gameplay experience. 2025-10-07 12:31:07 +01:00
Z. Cliffe Schreuders
6c277da286 Implement door transition tracking: Add logic to prevent repeated door transitions by tracking the last transition made. Enhance the door transition detection system to improve gameplay flow and maintain room state consistency. Update comments for better clarity on the new functionality. 2025-09-01 02:10:47 +01:00
Z. Cliffe Schreuders
9db19b503a Refactor player and room depth management: Simplify depth calculations for player and room elements by using world Y position plus layer offsets. Update door sprite depth settings for consistency and improve door transition detection logic. Enhance comments for clarity and maintainability across the codebase. 2025-09-01 02:05:57 +01:00
Z. Cliffe Schreuders
3940d04a62 Update key-demo.html and lockpicking minigame: Enhance key mode functionality by introducing a random key selection feature, allowing players to choose from three random keys. Update UI instructions for clarity and improve feedback messages based on key selection outcomes. Adjust game parameters to streamline the key selection process and ensure a smoother gameplay experience.
WiP updates to the main game including improved doors, animations, and player depth. Locks currently disabled.
2025-08-31 23:10:58 +01:00
Z. Cliffe Schreuders
b864d3e139 Refactor minigame structure and styles: Update index_new.html to link to the new minigames-framework.css, add new lockpicking-comparison.html and locksmith-forge.html files for enhanced gameplay, and introduce dusting and lockpicking CSS files for improved styling. Update README_design.md for clarity on main.js functionality. Add new test-phaser-lockpicking.html for testing purposes. Enhance Bluetooth system with new functionality in bluetooth.js and interactions.js. Ensure game state management for notes and Bluetooth devices is consistent across the application. 2025-08-08 15:33:44 +01:00
Z. Cliffe Schreuders
c4d8508bcf Add BreakEscape game structure: Introduce new modular HTML, CSS, and JavaScript files for the BreakEscape game, enhancing maintainability and organization. Include design documentation and refactoring summary for clarity. Add new scenarios and assets for gameplay expansion. 2025-07-13 23:18:57 +01:00