Island Generator - procedurally generating a map of islands Today I started my C++ journey!My Goal is to create my own game in UE4, but first I want to get used to native C++ The Island Generator will work like this: - Generate a Grid (static 2-dimensional Array) that is filled with 0`s - Place random Island Centers-…
My guess is one of two things. Integer overflow or underflow (where a number is bigger or smaller than the maximum or minimum number for the int type), or you're accessing values outside of your array bounds. I'd have to look at your full source to understand what's going on to be sure.
I literally programmed 10 hours today and didnt get it done :disappointed: Atleast I made some progress on the grow algorithm. The islands grow based on their centers into each direction. They randomly pick some left or right distortion. The growth can randomly stop, because before each turn an if clause based on a random…