City simulator I made in Scratch
scratch.mit.edu
scratch.mit.edu
One question: how do you manage large code bases in scratch? Is it easy to find a piece of code? Something like grepping for specific things seems difficult.
I've recently been really warming up to Scratch since one of my kids picked it up and really enjoys it. I love the built-in concurrency model - it's a bit like CSP. Gets kids to think concurrently from day 1.
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
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.
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.
It hides some of the text syntax, while still being an onramp to text-based programming.
(Edit: at least in fantasy mode. I haven't yet worked out what to do in reality mode.)
I don't know if Scratch supports them though. Seems like it would given it's game focus.
One issue that arrive after a few minutes that's related, is the map arrows to be able to scroll around would often vanish. Going to the zoomed out overview map would eventually have the navigation return, yet kept occasionally happening for some reason.
Fun game, although world got flooded pretty much instantly, so was a bit of a downer. Still not sure if trade routes actually do anything other than explore the map. Did not ever seem to actually connect to nearby structures.
Be nice if there was some way to zoom out one level at least. Really... wanted to be able to zoom out after having 5-10 structures.