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:
Some implications:
- we will probably have to run as
sudo
- we may need to make a different version for each OS, or each family of OS (Linux distros, MacOS, Windows)
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