Commit Graph

64 Commits

Author SHA1 Message Date
4b262362be Fixed FrightenedGhostMode blinking 2025-09-06 21:18:55 +02:00
c696e666d0 Added highscore 2025-09-06 20:55:57 +02:00
ec89422e81 Changed ghost/packman-collision 2025-09-06 20:42:33 +02:00
a8dc81984f Fixed so that ghosts dont accidently go back in house 2025-09-06 20:30:12 +02:00
8865a196f8 Added logging 2025-09-06 20:26:56 +02:00
80f7897da6 Fixed issue with freezing ghosts 2025-09-06 20:16:13 +02:00
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
c475d3cb02 Minor fixes 2025-09-03 21:10:34 +02:00
6dabc63892 Refactor Pacman state handling to use setState method.
Centralized Pacman state transitions into a new `setState` method to improve clarity and consistency. Removed redundant `reset` and `startDeathAnimation` methods, merging their logic into state management. Adjusted game state transitions to align with the new approach.
2025-09-03 20:58:57 +02:00
2f9106c1c9 Minor change 2025-09-03 20:32:33 +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
c05398201f Minot pacman-changes 2025-09-03 00:27:44 +02:00
4638484b97 Refactor CollisionChecker for cleaner boundary handling
Streamlined collision logic by introducing helper methods for boundary calculations and movement validation. Replaced commented-out code with efficient implementations, improving readability and maintainability. Added clear documentation for new methods to better convey their purpose and usage.
2025-09-03 00:18:27 +02:00
328098bbe7 Refactor PacMan to utilize SpriteSheetManager.
Replaced hardcoded sprite loading logic with centralized SpriteSheetManager to improve maintainability and reduce duplication. Adjusted related methods to use the new Sprites record for streamlined sprite management.
2025-09-02 21:47:50 +02:00
5ba16402e4 Deathanimation working 2025-09-02 21:30:08 +02:00
96c89b6598 Inlcuded deathanimation in spritesheet 2025-09-02 12:26:18 +02:00
2d5c4c18f5 HighScoreManager 2025-09-01 21:53:10 +02:00
b13f87f77b GameOverState WIP 2025-09-01 21:48:34 +02:00
fcd686fad0 Added visuals to RoundPhase 2025-09-01 20:36:54 +02:00
be3c4deb3c Implemented level-change 2025-09-01 15:29:25 +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
61d9df04f9 Refactored Ghost positioning and speed - now uses Double x,y 2025-08-31 16:02:38 +02:00
7c79a309e7 Refactored Pacman positioning and speed - not uses Double x,y 2025-08-30 20:52:22 +02:00
014c9ea2ce Added LevelManager 2025-08-30 13:44:54 +02:00
4597279d9e changed UPS to 200 2025-08-30 13:44:39 +02:00
63b2b7ae68 Adding fruits 2025-08-30 08:45:43 +02:00
23fce8dded Adding Ghost to SpriteLocation 2025-08-29 15:24:30 +02:00
f001cf0a41 Implemented frightmode 2025-08-29 13:28:09 +02:00
09e0396cc3 Removed collisionmask for large pellets 2025-08-28 17:39:49 +02:00
76cb35c955 Score Large Pellet 2025-08-28 16:36:18 +02:00
cbcc0af47c Refactored GameMap 2025-08-27 20:03:59 +02:00
1f9e6f4e4a Minor improvments 2025-08-22 12:11:41 +02:00
b9a43be3c6 Basic score count working
update takes movement into account
2025-08-22 11:00:19 +02:00
9bb76ce682 Lives, Score 2025-08-21 20:14:18 +02:00
712d58e8e3 Rudimentary colisioncheck 2025-08-21 15:14:20 +02:00
e8112f1cbb Tidying up Ghost 2025-08-21 14:31:08 +02:00
dc9dad4d9c Fixing minor improvements 2025-08-21 13:50:22 +02:00
d06e7131ad Fixing minor issues 2025-08-20 16:33:18 +02:00
8e546fe942 Added remaining ghosts incl. movment-strategies 2025-08-20 15:26:06 +02:00
9f316e5b43 Added Scatter-strategy 2025-08-19 21:17:36 +02:00
64dcba2584 Reworked pacman position. Now centers in the middle of the sprite 2025-08-18 13:21:54 +02:00