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

General improvements, mostly for macOS #11

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

zydeco
Copy link

@zydeco zydeco commented May 16, 2023

I've implemented the suggestions in #10 and a few more improvements:

General improvements:

  • Use GL_NEAREST for upscaling: will not be blurry on retina screens
  • Preload more lightning sounds: while not playing, you can click faster before the sound fails to play
  • Keep score and level on bottom bar after the game is over: I chose to hide the lives since the game is over when you have no lives left

macOS-specific:

  • Allow resizing the window to integer multiples of the game size (to keep pixel-perfect drawing, including ½ on retina screens)
  • Hide cursor while playing, even if it is moved (while playing, it re-hides on keyboard input)
  • Full screen enhancements
    • Scales up to nearest integer multiple of the game size (to keep pixel-perfect drawing)
    • Hide the menubar

retina half size
retina default size
non-retina 2x game over

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