Magic 8-Ball App

rli · 3 · 3265

rli

  • Jr. Member
  • **
    • Posts: 8
    • View Profile
Hacked together a simple app today: https://github.com/raymond-li/thumby_magic_8_ball

Gif of it in action:


Anyone interested can change the sprite and the messages by modifying the code at the top of the file!


I'm unfamiliar with micropython and haven't done very much game programming so I had to spend some time writing code just to test simple functionality I wanted to put in the end product. The lack of feedback when something goes wrong in the emulator forced me to write code and test very incrementally. The sprite also took many iterations to get to something I liked.
Edit: It turns out you can open the Chrome console (Ctrl + Shift + J on Windows/Linux) and get the usual stdout and stderr along with other activity on the page!

You can see a bit of my development process in this version of the code: https://github.com/raymond-li/thumby_magic_8_ball/blob/main/magic_8_ball_dev.py

Attached as well (from commit 1ea840b02a1ef8536832fe7b5a8d0cddd4723378)
« Last Edit: October 17, 2021, 04:06:27 AM by rli »


Void777

  • Full Member
  • ***
    • Posts: 16
    • View Profile
Sweet App.  I also wanted to thank you for pointing out the Ctrl + Shift + J, its been an absolute lifesaver after about a week of developing my own game and spending hours trying to find  single character errors.


CoolieCoolster

  • Full Member
  • ***
    • Posts: 30
    • View Profile

 

SMF spam blocked by CleanTalk