by Rendello · 1y ago · 0 comments
Scratch lacks functions with return values, but if you hack global variables to be like registers, you can emulate them and even do recursion. At least that's how I did it. The Cartesian plane has (0,0) in the centre, which is annoying if you're used to traditional graphics.
I have a young cousin who's intimidated by making the jump from Scratch into traditional game dev. I tell him that Scratch simplifies a lot of things, but it also makes a lot of things harder if you're used to regular programming.
"Recursive Bisection on a Cartesian Plane in the Horizontal and Vertical Axes." (hold shift when you press "go" for fast mode): https://scratch.mit.edu/projects/1098438053
1. https://www.lexaloffle.com/pico-8.php
2. https://www.lexaloffle.com/bbs/?cat=7&carts_tab=1&#sub=2&mod...
The simple IDE and forced constraints makes you really focus on the basics like fun gameplay loops and minimal graphics, and the fact you can do the code, graphics, sound effects, and music all in one little program is a really smart way to teach you all different aspects of game dev.
It’s also so ridiculously easy to share your creations, outputting a simple HTML/JS combo that works perfectly on mobile and desktop even if they don’t own the program.
I'm not sure what precisely, but I'm picturing a split view with text on the left and the output on the right.
I do this in web dev, React + hot reload is wonderful. For games, I've done it with instantly recompiling shaders but not much else.
It hides some of the text syntax, while still being an onramp to text-based programming.