Skip to content

General improvements, mostly for macOS#11

Open
zydeco wants to merge 10 commits into
kainjow:masterfrom
zydeco:master
Open

General improvements, mostly for macOS#11
zydeco wants to merge 10 commits into
kainjow:masterfrom
zydeco:master

Conversation

@zydeco
Copy link
Copy Markdown

@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