Commit Graph

14 Commits

Author SHA1 Message Date
c1c998c1cd Refactor ghost behavior and improve mode transition logic
Replaced hardcoded coordinates with `Ghost.getHouseEntrance` for clarity and flexibility. Introduced `requestModeChange` to streamline state transitions. Updated collision and movement logic to handle ghost-specific tile interactions, enhancing gameplay accuracy.
2025-09-06 18:55:25 +02:00
291f929064 Refactor Ghost mode handling to prioritize mode transitions
Reordered GhostMode enum for logical priority and updated `setMode` to enforce transitions only to higher-priority modes. Added `currentMode` method for determining the Ghost's active mode, ensuring cleaner and safer state management.
2025-09-06 00:42:40 +02:00
e299a4173e Added HOUSE mode 2025-09-06 00:12:08 +02:00
d551b464b1 Moved mode-related in to package 2025-09-05 23:25:09 +02:00
5f118a75f6 Ghost refactoring 2025-09-05 23:22:45 +02:00
ebbc82b70e Minor fixes 2025-09-04 23:12:39 +02:00
b317581e9c Add "FROZEN" mode to Ghost behavior and update logic
Introduced a new "FROZEN" mode to the Ghost state machine, ensuring proper handling in ghost behaviors and animations. Updated `GhostManager` and `Ghost` classes to integrate this mode, including relevant logic for updates and animations. Simplified and refined ghost initialization and strategy handling for better code maintainability.
2025-09-03 20:25:54 +02:00
11a550e997 Implement ghost "eaten" behavior and refine fright mechanics
Added a new "eaten" mode for ghosts, including animations, movement strategy, and logic to reset ghosts after being eaten. Adjusted scoring for frightened ghosts using a fright multiplier and introduced enhancements like streamlined direction prioritization and position alignment. Also temporarily disabled non-essential ghosts for testing purposes.
2025-09-03 12:53:26 +02:00
d4b980f522 Moved around 2025-09-03 00:42:48 +02:00
9c0a613e4d Minor changes 2025-09-03 00:38:28 +02:00
5ba16402e4 Deathanimation working 2025-09-02 21:30:08 +02:00
fcd686fad0 Added visuals to RoundPhase 2025-09-01 20:36:54 +02:00
3a4a0a1824 Moved speeds to LevelManager 2025-08-31 19:53:38 +02:00
2e9e7cc45e Refactored package-structure
Extracted Animated-interface
2025-08-31 17:57:46 +02:00