2020-03-02 01:25:21 UTC
I am writing a little tamagotchi-like virtual pet that sits in your
You can find the code here:
I am having some issues. I want the little program to scan the keyboard
for input every game loop cycle, and if there is no key pressed, I want
the game to continue marching on in execution.
However, all of my attempts at creating a scanning function halt until
the user presses enter, even if they do not press a key.
I have looked at (read-char-no-hang), (listen), and this really cool
little package that someone wrote called 'terminal-keypress':
I am using SBCL, and SLIME with EMACS.
Can someone point me in the right direction? I need a little help.
I have tried to code literately, so I hope that my code makes sense.
Thanks in advance,