New course! Every coder should learn Generative AI!
Try a free lesson0
Is there a way to get pieces of code to randomly generate graphics?
for an open source flash game
1 Answer
0
Depending on what exactly your trying to generate, you can probably do it ("probably" since there's some degree to which game assets may need to be made). Like if you're making a scrolling star field for a space shooter, you can randomly generate stars on screen that move from one side to the other. Generally, speaking you generate random numbers to let the game decide what to do. I'd recommend this video on how Spelunky creates levels randomly while still giving a fun experience instead of necessarily a completely random experience. Just as a point of inspiration I suppose. https://youtu.be/Uqk5Zf0tw3o