q-wiki / q-wiki-server

Q-Wiki is a Wikidata based game (Unity front-end with ASP.NET Core back-end) developed by HTW Berlin students in cooperation with Wikimedia Germany.
GNU General Public License v3.0
2 stars 0 forks source link

Map generation: First try #6

Closed rrrnld closed 5 years ago

rrrnld commented 5 years ago

This doesn't have island detection yet but it uses perlin noise for natural yet random map generation. You can give an amount of desired accessible tiles and it will generate a map with exactly that amount.

That is sub-optimal because with the value of 18 we could have a map like this

o = accessible
x = inaccessible

ooooo
ooxoo
xxxxx
ooxoo
ooooo

The two players could never actually reach each other. Still, I'm quite content with this so far and I'd like to make it more c-sharpy and discuss ways of improving that.

See you tomorrow!