r/gameenginedevs • u/Comprehensive-Dog35 • 5h ago
Game engine developing to help beginners etc
How would you simplify visual coding for complete beginners?
I'm developing a visual coding editor for my own game engine.
I've found that nesting blocks can become confusing, so I'm considering clearly labelled command blocks with the actual written code generated alongside them.
I'm also exploring whether connecting blocks would be more intuitive than nesting them.
I'd be interested to hear your thoughts on making visual coding more accessible without removing important programming concepts.
2
Upvotes
2
u/tastygames_official 5h ago
I would imagine something more along the lines of pre-made modules would be better for absolute beginners. Things like "move each frame" where they can enter how many pixels or which physical distance it should move and over how many seconds/frames. Then maybe "do somehting when collision" where you can choose from a preselected set of actions or hook it up to an event module or something. I mean, absolute beginners are probably just going to want to make very standard type games, so any kind of custom programming won't be necessary. And more advanced developers will already know how to program so can use whatever scripting language you offer.
I think MIT has some "learning programming for kids" website that is also great for absolute beginner adults and is just basically control blocks with pre-determined actions.
1
u/thisghy 1h ago
I've been working on some visual scripting and came across that idea too. Same deal for glsl, Im thinking that being able to see a preview of the code, and also to be able to plop in some shader code and generate the material node graph from it might be a good way to learn in a more visual manner. Plus the output preview on a mesh.
There may be better ways too