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
The process of typing something and pressing enter to do anything with player input is slow and I want the game to have a similar speed to true Slay the Spire.
How?
This took me a bit of researching to decide but I will be using the keyboard module to listen for keyboard inputs.
The reason I chose this over pynput is primarily because it relies on an X11 server to be running on Linux. Since I am using WSL for development at the moment, pynput is unable to run due to the fact that WSL only runs in the terminal(Except with X11 forwarding) and there is no display server running.
Yes, this does mean you will need sudo to run this on Linux
I figure this is a worthwhile tradeoff to being literally unable to play the game on my own machine.
Here is a Stack Overflow post detailing both libraries as solutions for listening for keyboard input in Python.
The days of input() will be over soon.
The text was updated successfully, but these errors were encountered:
Basically, no more
input()
.The process of typing something and pressing enter to do anything with player input is slow and I want the game to have a similar speed to true Slay the Spire.
How?
This took me a bit of researching to decide but I will be using the keyboard module to listen for keyboard inputs.
The reason I chose this over pynput is primarily because it relies on an X11 server to be running on Linux. Since I am using WSL for development at the moment, pynput is unable to run due to the fact that WSL only runs in the terminal(Except with X11 forwarding) and there is no display server running.
Yes, this does mean you will need
sudo
to run this on LinuxI figure this is a worthwhile tradeoff to being literally unable to play the game on my own machine.
Here is a Stack Overflow post detailing both libraries as solutions for listening for keyboard input in Python.
The days of
input()
will be over soon.The text was updated successfully, but these errors were encountered: