-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[python] Implement get_keys, wait_vblank in kandinsky #746
Conversation
47daf0e
to
8c7daec
Compare
31fe579
to
452d9e1
Compare
I've added blitting and key reading functions, so one can make "real" games on the calculator now (proof: https://workshop.numworks.com/python/jblbeurope/pong). Drawing performance is disappointing, probably because the framebuffer isn't memory-mapped, but it's usable as long as one doesn't attempt to redraw the entire screen in real time. The only way to achieve good drawing performance would be to "race" the beam by redrawing the entire screen in one go (like GESTE did), but that would be quite the challenge to do it quickly enough from within MicroPython... I've moved the Python interrupt key to the Home button. Not sure if that's a welcome change, but two main buttons is better than one and it's less likely someone would exit out of a Python script while trying to hit the OK key. |
452d9e1
to
c81ecd1
Compare
c81ecd1
to
6c41286
Compare
I've updated the PR and the pong code sample to match #925. I also removed everything that isn't needed for that issue, except for key bindings changes in the simulator to make the Python app bearable with the keyboard. I can't compile/test this on a real device for now, hopefully it'll work on the first try. |
@adriweb I noticed. I'm experimenting with tilemapping from Python right now in an attempt to justify a |
6c41286
to
08b479d
Compare
I've updated the PR and removed what's implemented upstream now. The |
6c41286
to
256b67e
Compare
Per #992, removing commit concerning FLTK simulator. |
256b67e
to
0971d72
Compare
be careful, up and right are inverted |
Indeed, good catch. But this PR has been superseeded by #1201 anyway, so I'm closing this one. |
These functions are already directly provided by kandinsky, might as well expose them to Python. Still a far cry from what we can do (#416), but these functions are essentially free to implement.