So I wanted to work on programming games in the micropython port on my fx-cg50. However there is no built in function for getting a key press (besides input() which is useless for games). Does anyone know of a module that can be imported to fix that (that works on the cg-50)?
Isn't PythonExtra one workaround?

Also you can get clear and catch on/break iirc
Critor made a whole scrolling game with just that
PythonExtra is the only option, unfortunately (disclaimer: I'm the main developer - https://www.planet-casio.com/Fr/forums/topic17202-16-beta-pythonextra.html)
CASIO added a non-blocking getkey() function on the Math+/CG-100 but it hasn't been backported, and it's pretty slow too.
You also have the option to run micropy:
https://www-fourier.univ-grenoble-alpes.fr/~parisse/casio/micropy.g3a
Note that micropy is also included in the full edition of KhiCAS:
https://www-fourier.univ-grenoble-alpes.fr/~parisse/casio/khicasioen.html
Thanks, I gotta try both of these, by Lephe and Parisse, they both look good.
Lephe wrote:

I wish I knew how to build files off of code. Do you have a .g3a file of the latest version I can put directly on the calc?
Yes, in the topic linked above, just above the screenshots there's a bold download link for a .zip which contains (among other things) the .g3a you need.
So ExtraPython has a very well done intuitive UI that makes it easy to find and run a program. Micropy has an interface for writing code, so I'll be using that to write programs that can be executed in ExtraPython, with all it's useful modules. Both programs work great, and micropy even has me learning a bit of French to learn the controls lol. I did find what I assume is a bug for micropy: when I try opening, inserting or running a script, it only shows .py files stored directly in root memory; folders come up empty.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement