切換
舊版
前往
大廳
主題

[遊戲製作研究] 玩玩爬文找到的Cave算法 - 2023/6/27

零加七 | 2023-06-27 00:50:39 | 巴幣 0 | 人氣 192


晚上回家吃完晚餐覺得渾身無勁, D4 RO也有點不想開來玩, 就耍費看YT順便爬文繼續研究Roguelike遊戲製作.

爬到一個Cave隨機生成地圖的算法覺得很有趣, 就實作進去看看, 效果不錯!
https://www.roguebasin.com/index.php?title=Cellular_Automata_Method_for_Generating_Random_Cave-Like_Levels

然後發現有些區域不連通, 就稍微設計主角接觸樹木點擊可以砍樹通過, 拿來Debug用, 未來可能製作要身上有斧頭才能砍樹, 還有耐久度等等(可能設計).

扯遠了, 目前功能NPC對話功能有做出來, 還做了一個魔法地圖可以隨玩家移動逐漸變清楚. 戰鬥系統感覺有點不好玩, 可能我還調不出我想要的數值, 想模仿D&D但又沒玩過, 有點設計四不像. 在想要不要改成回合戰棋, 還是像日式回合制RPG那樣戰鬥?

程式碼開始變得有點亂了, 是想到什麼功能就直接實做到狀態中, 有些功能沒有模組化,
再慢慢琢磨吧!


附上今晚爬文找到的資源:

roguebasin 文章
https://roguebasin.com/index.php/Articles#Fundamentals

Roguelike 開發資源
https://github.com/marukrap/RoguelikeDevResources#open-source-roguelikes

roguelike development
https://www.reddit.com/r/roguelikedev/

Roguelike Tutorial in Java and AsciiPanel
http://trystans.blogspot.com/2016/01/roguelike-tutorial-00-table-of-contents.html

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

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

AStar
https://github.com/munificent/a-turn-based-game-loop/blob/master/lib/src/a_star.dart

https://davidhsu666.com/archives/quadtree_in_2d/

好上手的免費音效製作軟體Bfxr

https://home.gamer.com.tw/creationDetail.php?sn=4948453

第 7 階段 - 動畫、屏幕震動和聲音

https://nluqo.github.io/broughlike-tutorial/stage7.html

GodoRogue-Wiki
https://github.com/aikoncwd/GodoRogue-Wiki


創作回應

更多創作