Fix #15 #17 #23: Tab focus pause + Score save + Lives negative#31
Open
HuiNeng6 wants to merge 2 commits into
Open
Fix #15 #17 #23: Tab focus pause + Score save + Lives negative#31HuiNeng6 wants to merge 2 commits into
HuiNeng6 wants to merge 2 commits into
Conversation
Fix woydarko#25: Scale pest speed with currentStage - Bug woydarko#24: The boss defeat check was duplicated, causing score +200 instead of +100 - Bug woydarko#25: Pest speed now scales with currentStage for progressive difficulty Wallet for bounty payout: TRcKoDSesu9W1FoEbZJWz5AiyPLTr5C6JB (USDT TRC20)
Fix woydarko#17: Save score to localStorage on game over Fix woydarko#23: Prevent lives counter going negative - woydarko#15: Added visibilitychange listener to pause/resume game - woydarko#17: Added localStorage persistence for high score - woydarko#23: Changed forEach to for loop with early break on hp <= 0 Wallet for bounty: TRcKoDSesu9W1FoEbZJWz5AiyPLTr5C6JB
Author
|
Hi @woydarko! This PR fixes 3 more bugs from your Scarab Bug Bounty list: ✅ #15 - Game pauses correctly when tab loses focus (visibilitychange API) All fixes tested and verified in the codebase. Ready for review and merge! Wallet for bounty payment: TRcKoDSesu9W1FoEbZJWz5AiyPLTr5C6JB (USDT TRC20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug Fixes
Fix #15: Pause game when tab loses focus
Fix #17: Save score to localStorage on game over
Fix #23: Prevent lives counter going negative
Wallet for Bounty: TRcKoDSesu9W1FoEbZJWz5AiyPLTr5C6JB