• 0 Posts
  • 10 Comments
Joined 7 months ago
cake
Cake day: June 25th, 2024

help-circle

  • I would also go as far as hiding a mini snake game as an easter egg

    If you want some code for that I have my own C++ version I made for an ESP32 with OLED screen, it can easily be adapted to most other languages. I did it to get some programming practice. I have Tetris too. All you gotta do is replace the GPIO button inputs with keyboard inputs (or some other boolean on/off user input element) and replace the graphics framework and routines as well (it’s only simple stuff like lines, boxes, and setting individual pixels). The whole thing runs in a “neverending” while loop, first checking inputs, then checking collisions, then redrawing any objects that need to move to another position.

    I can upload to my GitHub and link them later after work. They do use OOP though, treating each sprite on the board as its own object, and feeding pointers to them into a collision detection routine every game tick. I dunno, some people have a visceral hate for OOP.





  • We aren’t taught or encouraged to explore or experiment by our educational systems. We are taught how to do something, and then don’t question it. There are tons of people that cannot meaningfully play with Lego without assembly instructions. The idea of trying something out of the norm from what they already know never enters into their head.

    Like, back in the day, I literally discovered I could drag and drop files directly into the “upload” area on some websites and it would automatically post the file to the site. I didn’t even know it was possible, I just out of the blue wondered if a browser can work like a drag and drop file manager and just went ahead and did it.