Dec-22-2017, 09:21 AM
(Dec-22-2017, 07:53 AM)wavic Wrote: While this is the obvious approach I can't tell you more because I never needed something like that. Perhaps I have to learn how to do something like that too.
However, I recommend Pygame because it can detect keypress. But how to do it... Don't know. We have Pygame tutorials here, thanks to @metulburr. Take a look
OK, i looked at a couple of these games.
I see while loops all over.
Probably, if you aim for standalone device, with "buttons only",
you cannot escape while loops of sorts.
The only thing i can see to prevent the while loop from whizzing around zillions of times, waiting for an input,
is to make it the actual clock of eg. 1 second a tick, and build the app around that. Essentially this is what i did.
The fact that my question is not possible, is also an answer
thx,
Paul