切換
舊版
前往
大廳
主題

[遊戲製作研究] 使用Perlin Noise生成世界地圖 - 2023/8/6

零加七 | 2023-08-06 03:18:10 | 巴幣 0 | 人氣 126


想要生成像我的世界一樣自然的地形風貌, 要有高低起伏區別又要生成連續自然, 找到Perlin Noise產生方法. 大概研究找到相關code終於生出較滿意的世界地圖.

之後再加入村莊地城, 進入可以切換地圖冒險.

參考資料:
Perlin Noise: A Procedural Generation Algorithm
https://rtouti.github.io/graphics/perlin-noise-algorithm

Creating a random 2d game world map
https://gillesleblanc.wordpress.com/2012/10/16/creating-a-random-2d-game-world-map/

創作回應

更多創作