5 ms·
Python is nice, but pygame is just a wrapper around sdl. I am not surprised it was not appealing. How do you do graphics in awk? If you don't then using js and
by ido 11y ago
Python is nice, but pygame is just a wrapper around sdl. I am not surprised it was not appealing.
How do you do graphics in awk? If you don't then using js and one of the html5/canvas based game engines might be a reasonable step forward.
- mzs 11y agoThe awk script just does terminal escapes, so no real graphics. Canvas is pretty complicated, I'm shying away from that and also since it's time consuming and orthoganal to create pretty pictures for modern hardware. JS is even worse when you try to teach enough to be fancy and portable. In any case I spent some time on it tonight for my son. I've made a little html file that is a nice harness for him to write JS so he does not have to know much of anything other than innerHTML. https://github.com/msliczniak/msliczniak.github.io/tree/master/jake https://github.com/msliczniak/msliczniak.github.io/tree/mast...
- ido 11y agoyeah, i agree canvas is too low level, that's why i suggested one of the game engines that use it under the hood (thus abstracting a lot of the complexity). Phaser is a pretty decent "batteries-included"-style engine (definitely easier to use than pygame, despite js not being as nice as python). A good summery/list in general can be found at https://html5gameengine.com/ https://html5gameengine.com/
- mzs 11y agothanks ido
- gcr 11y agoBe sure to look into LÖVE2D. A bit distantly similar to Pygame but completely self-contained and in Luna, so no dependencies to worry about. Installation couldn't be simpler.
- mzs 11y agoLÖVE2D is fantastic, wish I had known about it cause it is exactly what I was looking for when I tried to help my oldest son, thanks. When my youngest son decides he wants to do sound I will start both of them down that path. For now I've thought a bit and it would be pretty easy for me to abstract sprites and text drawn to a canvas with clicking and keypresses so I think I will do that first when the time comes. My youngest son was EXTREMELY happy this morning and began porting letters2player to JS before school.