4 ms·
This is very cool indead. Reminds me of my time as an undergrad at uni, where one of our projects revolved around making a game/sim like this. Everybody else wa
by pserwylo 12y ago
This is very cool indead. Reminds me of my time as an undergrad at uni, where one of our projects revolved around making a game/sim like this. Everybody else was trying to make 3D adventure games, but we were interested in "good quality" (I put that in quotes because I just went back to look at the code and shuddered) 2D games, that were more polished.
Our game was called "Land of Life" [0] (or Geco, according to the source code, not sure why). It was a basic, fixed size, isometric tile game. To start with, you are presented with a desert. The only thing you can do is add mountains, and then hit play and watch clouds form and move over the mountains. If you constructed your mountains well, you'd get nice oasis' with rivers flowing out of the mountains, and greenery around it. If, you probably wouldn't get any rivers, but would get some small shrubs.
From memory, the only heuristics about adding mountains were: You can only make a mountain bigger if there are a certain number of mountains of a certain size adjacent to it. It was a bit like game-of-life in that way, hence the name "land of life". This worked surprisingly well for constructing mountain ranges.
One main difference from our approach and the one linked to here is that theirs looks absolutely amazing and educational, whereas ours used heuristics that we dreamed up via trial and error.
[0] Screenshot (missing assets for river tiles, because I couldn't find the final source code) - https://raw.githubusercontent.com/pserwylo/land-of-life/master/screenshot.png https://raw.githubusercontent.com/pserwylo/land-of-life/mast...
EDIT:
Here is a screencast [1]. I still think it is nice how the first river which heads off to the top right (rendered in black due to no river assets) gets surrounded by trees because it is a source of water in the desert. This is not based on any geological/ecological/climate knowledge on our part, but was still fun to tinker with.
[1] https://raw.githubusercontent.com/pserwylo/land-of-life/master/screencast.webm https://raw.githubusercontent.com/pserwylo/land-of-life/mast...