[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

sup /g/, Write a function in c++ that will generate cave structures.

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 19
Thread images: 4

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?
>>
File: umaru questionmark.png (513KB, 1280x720px) Image search: [Google]
umaru questionmark.png
513KB, 1280x720px
>>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
>>
File: 1496567432750.jpg (75KB, 640x687px) Image search: [Google]
1496567432750.jpg
75KB, 640x687px
>>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
>>
File: 1497742948043.jpg (42KB, 417x393px) Image search: [Google]
1497742948043.jpg
42KB, 417x393px
>>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
Thread posts: 19
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.