Skip to content

feat: Add developer only debug menu to change high score and coin amount (#393)#416

Merged
jvondermarck merged 40 commits intojvondermarck:mainfrom
Q2L2:main
May 1, 2026
Merged

feat: Add developer only debug menu to change high score and coin amount (#393)#416
jvondermarck merged 40 commits intojvondermarck:mainfrom
Q2L2:main

Conversation

@Q2L2
Copy link
Copy Markdown
Contributor

@Q2L2 Q2L2 commented Apr 30, 2026

✅ PR Checklist

  • My PR title follows the format: type(scope): description (#issue) (scope and #issue optional)
  • I used the correct type: feat, fix, refactor, docs, test, chore
  • I reviewed my code and removed unnecessary debug logs or comments.
  • I tested my changes and verified they work as expected.
  • I ran the project to confirm it compiles and runs correctly.
  • I read the Code of Conduct and the Contribution Guidelines.

📝 What does this PR do?

  • Added a debug menu button only visible when running the game with the debug menu flag enabled to allow developers to bypass normal achievement progression. The instruction for enabling the flag can be found in "Debug Menu (Developers Only)" section in README.md.
  • Added prompt boxes and buttons to set high score/ coins amount that allow the user manually type an integer number as the high score/ coins amount value and press the SET HIGH SCORE/ SET COINS button to save the change. The values are only saved when the inputs are entirely numerical and reasonably large, otherwise the prompt boxes notify users with the message: INVALID—ENTER A NUMBER.
  • Added translations for the texts in the debug menu in all currently supported languages.

🔗 Related Issue

Link to the issue this PR addresses (if any)

📸 Screenshots / Demos (if applicable)

Screen.Recording.2026-04-29.at.9.56.24.PM.mov

💬 Extra Notes (Optional)

Changes to high score and coins persist to save files so developers can immediately test unlock conditions without grinding.


❤️ Thanks again for your contribution to Dinosaur Exploder!
Your efforts help make this project awesome for everyone. 🦖✨

Yang Lilly and others added 30 commits April 25, 2026 22:39
Co-authored-by: Copilot <copilot@github.com>
[Feature] Debug Menu added to the main page
[Feature]: Add a debug menu for developers only
Added a back button in debug menu
feat: implement debug menu functionality for high score and coins
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
dinosaur-exploder Ignored Ignored Preview May 1, 2026 3:02pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

✅ Code Formatting Check Passed!

badge

Great job! 🎉 Your code follows the Google Java Style Guide.


🤖 The DinoBot Team 🦖

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

Build preview 🚀

badge

Thanks for your contribution to this open-source project! ❤️

A new build has been generated for this pull request:

  • 🎮 Game Artifacts: 🐧 Linux / 🍎 macOS / 🪟 Windows
  • 🧪 Workflow Run: View Logs
  • 🔖 Commit: 5aa4a7b0349b6e7dc3a68180d38bd0958fd17d57

Tip

This JAR lets you test the latest version of the game from this PR.

Note: Artifacts auto-expire after ~90 days.

Happy testing & enjoy the game! 🎮

The DinoBot Team 🦖

@Q2L2 Q2L2 changed the title feat: Add developer only debug menu to change high score and coin amount (#393)) feat: Add developer only debug menu to change high score and coin amount (#393) Apr 30, 2026
Copy link
Copy Markdown
Owner

@jvondermarck jvondermarck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good, thanks a lot! And also good job for enabling the debug menu ONLY with a command, perfect, so at least it is hidden!

Just one comment, I would suggest to improve a bit more the UI, what do you think?
Place maybe the popup at the middle horizontally and vertically, and

Image

and once we enter a value, it says this:
Enter amount of coins <1> the 1 thing why? It's a bit weird. Like the placeholder implementation is a bit weird? No?
Image

@jvondermarck
Copy link
Copy Markdown
Owner

If you're not a pro of UI, I can merge and create an issue to improve the UI of this if you want, so another contributor can improve it :)

Comment thread README.md
Comment on lines +146 to +161
#### Debug Menu (Developers Only)
The debug menu is hidden by default. To enable it, pass `-DdebugMenu=true` when running:
```bash
mvn javafx:run -DdebugMenu=true

# Or with the browser version:
mvn jpro:run -DdebugMenu=true
```
```markdown
Once the debug menu is open, you can:
- **SET HIGH SCORE** – overrides the saved high score for the current difficulty mode, useful for testing score-based unlocks and achievements
- **SET COINS** – overrides the total coins saved across all sessions, useful for testing coin-based unlocks

Both changes persist to disk immediately and take effect on the next game session.
```

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the doc! Great work

@jvondermarck jvondermarck added status: in-review PR currently in review status: pending-request-changes Request changes from the contributor labels May 1, 2026
Yang Lilly added 2 commits May 1, 2026 11:00
`# Please enter a commit message to explain why this merge is necessary,
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 1, 2026

@Q2L2
Copy link
Copy Markdown
Contributor Author

Q2L2 commented May 1, 2026

Looks very good, thanks a lot! And also good job for enabling the debug menu ONLY with a command, perfect, so at least it is hidden!

Just one comment, I would suggest to improve a bit more the UI, what do you think? Place maybe the popup at the middle horizontally and vertically, and

Image and once we enter a value, it says this: `Enter amount of coins <1>` the `1` thing why? It's a bit weird. Like the placeholder implementation is a bit weird? No? Image

Hello Julien, thank you for the feedback! I just made a new commit to center the debug menu layout in the main menu and changed the prompt text for a successful change to the high score/coins values to: "CHANGE SUCCESSFUL: value", as well as adding the translations for all currently supported languages. Let us know what you think and if there are other suggestions you have for us before merging the PR!

@jvondermarck
Copy link
Copy Markdown
Owner

All good now thanks!

@jvondermarck jvondermarck merged commit 7a89f93 into jvondermarck:main May 1, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: in-review PR currently in review status: pending-request-changes Request changes from the contributor

Projects

Development

Successfully merging this pull request may close these issues.

5 participants