sup /g/,
Write a function in c++ that will generate cave structures.
you have a 1000 by 1000 array of ints. 0 means empty 1 is filled. From 0-250 rows will be air. Fill the rest with randomly generated caves that have surface entrances. Good luck
>>61140326
do your own homework
>>61140350
Not quite homework my friend :^)
>>61140326
How did it feel to waste money on a game dev school?
>>61140326
> using an array when you could use a bitboard
> not knowing what cellular automata is
>>61140397
I am doing game dev in spare time and i work otherwise. This is not a hard problem, I wanted to see what yoi can come up with :^)
>>61140326
sauce?
>>61140326
What animay is this?
>>61140326
That question is way too hard. I'm a programmer, not a mathematician.
Its a 10 minute problem dont tell me you cant do it
>>61140771
That's what she said.
>make one "pixel" "caves" on row 251
>make straight lines downward with random length
>make caves cosinsting of straight lines in 45deg angles
>>61140455
>>61140472
Gabriel Dropout
>>61140925
Thanks, anon-kun. :3
>>61141208
No problem!
>>61141208
Animu from which yonder image cameth? Or is it some shit OC
>>61140326
What do you mean cave structures, first I must know what a "cave structure" is
>>61142468
innit touhou?
>>61140326
So no one gave you an answer to your inane question in that other /dpt/ thread? there are far more efficient approaches, just grab the source code of another roguelike and check how did they went about it if you're intrested in checking alternatives you faggot