Skip to content

feat: add dynamic score multiplier based on game level#26

Merged
Molten-AndrOS merged 1 commit intomainfrom
dynamic-score
Mar 9, 2026
Merged

feat: add dynamic score multiplier based on game level#26
Molten-AndrOS merged 1 commit intomainfrom
dynamic-score

Conversation

@Erewhon-proj
Copy link
Copy Markdown
Owner

Score multiplier feature:

  • Added get_score_multiplier method to DifficultyManager, which calculates a score multiplier based on the current level (10% increase per level, capped at 1.5). (src/difficulty.py)
  • Introduced new settings: MAX_SCORE_MULTIPLIER and SCORE_MULTIPLIER_PER_LEVEL to control the multiplier limits and increments. (src/settings.py)

Score calculation integration:

  • Updated PacMan class to hold a reference to the DifficultyManager and use the score multiplier when awarding points for pellets and frightened ghost collisions. (src/pacman.py) [1] [2] [3] [4] [5]
  • Modified game loop to set and update the DifficultyManager reference in PacMan whenever the level changes. (src/main.py) [1] [2]

@Molten-AndrOS Molten-AndrOS merged commit 9235703 into main Mar 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants