Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring #34

Merged
merged 4 commits into from
Jan 12, 2024
Merged

Refactoring #34

merged 4 commits into from
Jan 12, 2024

Conversation

WimYedema
Copy link
Owner

@WimYedema WimYedema commented Jan 12, 2024

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

Changes:

  • Configured vscode
  • Fixed a bug on game start
  • Enabled prettier for formatting

The game starts too soon when:
1. Open the game page to the "play game" screen
2. Switch to another window
3. Switch back

What you see:
* The game is started but the play game button is still visible

It should be: the game should not have started.

The problem was that the code for visibility change was enabled before the game started, this would trigger an "engine start" when the window is visible again.
@WimYedema WimYedema merged commit 2e7d59c into main Jan 12, 2024
1 check passed
@WimYedema WimYedema deleted the refactoring branch January 12, 2024 21:12
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.

1 participant