[Feature]: Added mechanic that punishes players for shooting too much
โ PR Checklist
[!TIP] Please check the boxes below to confirm you followed the contribution guidelines:
- [ x] My PR title follows the format:
[Type]: clear description of change - [ x] I used the correct
type: Feature, Fix, Refactor, Docs, Test, Chore - [ x] I reviewed my code and removed unnecessary debug logs or comments.
- [ x] I tested my changes and verified they work as expected.
- [ x] I ran the project to confirm it compiles and runs correctly.
- [ x] I read the Code of Conduct and the Contribution Guidelines.
๐ What does this PR do?
- This PR aims to add a mechanic that punishes the player for attacking too often. The player can previously use their attack, which attacks as fast as they can press the spacebar, and move side to side to trivialize the game. This PR adds two new features: a cooldown to the player's attack (333ms) and a new enemy. The new enemy is an asteroid, and the player is disincentivized to attack it. If shot, it will explode into five projectiles that fan out toward the player, which cannot be destroyed. These changes should make the game more engaging to play.
๐ Related Issue
Link to the issue this PR addresses (if any)
- [ x] This PR fixes/closes: #133
- [ ] This PR doesnโt address a specific issue.
๐ธ Screenshots / Demos (if applicable)
https://github.com/user-attachments/assets/74a4b440-ea90-4cc4-ab37-9a23fd79f098
๐ฌ Extra Notes (Optional)
[!NOTE] ๐ฆ No extra notes.
โค๏ธ Thanks again for your contribution to Dinosaur Exploder!
Your efforts help make this project awesome for everyone. ๐ฆโจ
Build preview ๐
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:
8aa583c2be54c27182c2f1e09acebe757416f196
[!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 ๐ฆ
Close for inactivity. Please re-make a PR with the changes I asked you, thanks so much.