You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will allow the character to move faster than the keyboard's refresh rate. Notice if you hold down left or right, the character changes in position at the same rate your keyboard would repeat a letter in a text editor if you held down the key for that letter.
After talking with a few test players and friends, it seems like the solution is to decouple wgetch() into KeyDown() and KeyUp() event handlers.
This is a supposedly a non-trivial task when fetching this information from a terminal:
Another option for this is to just remake this game from scratch with a graphics library that actually interfaces with the machine's display, and then just drawing pixel art to make fake terminal-like graphics.
A few cross-platform options that might work are Vulkan and Pygame
If we decide to go down this route, we could go as crazy as we wanted with the art and just sink a bunch of time into making this look nice. Check out:
This will allow the character to move faster than the keyboard's refresh rate. Notice if you hold down left or right, the character changes in position at the same rate your keyboard would repeat a letter in a text editor if you held down the key for that letter.
After talking with a few test players and friends, it seems like the solution is to decouple
wgetch()
intoKeyDown()
andKeyUp()
event handlers.This is a supposedly a non-trivial task when fetching this information from a terminal:
Some implications:
sudo
The text was updated successfully, but these errors were encountered: