Replies: 1 comment
-
Ah. Ok. It works if I surround only the Not sure why, previously, it hit the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I pause my jaylib program?
For example, here's my basic "bouncing square" program: https://gist.github.com/uvtc/ad745eb69ed16567d8099f606edd4e7f
I'd like to be able to hit the spacebar to toggle pausing it.
Modifying my original program, here's my attempt at implementing pause:
The output to the terminal suggests that every time I hit the spacebar it acts as if I'd hit it twice; for example, after one tap of the spacebar, it yields:
Why would it fire twice? (I don't think
key-pressed?
is supposed to register key-up.)If I instead start off
keep-going
asfalse
, the program is frozen and needs to be manually stopped.This is using Janet 1.15.3.
Beta Was this translation helpful? Give feedback.
All reactions