Is there a way to get pieces of code to randomly generate graphics? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there a way to get pieces of code to randomly generate graphics?

for an open source flash game

16th Jul 2016, 11:36 PM
Harry Roberts
Harry Roberts - avatar
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
4th Oct 2016, 8:02 AM
Jeffrey
Jeffrey - avatar