[boblog] Roguelike游戏中的随机地图产生

in #cn6 years ago

关于 roguelike 游戏,随机性是其独特魅力之一。

而地图的随机,则是 roguelike 游戏中不可或缺的一部分,尤其是对于热衷于地图探索的玩家而言。

在《Procedural Content Generation for C++ Game Development》这本书中有对随机地图生成算法的详细阐述。

下面是地图随机算法的具体实现的 demo 演示,可以看到,每次所产生的地图均不一样。

random-map.gif

ramdom-map2.gif

random-map3.gif

Sort:  

看起来不简单喔~

Hi @bobdos!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 5.595 which ranks you at #501 across all Steem accounts.
Your rank has dropped 3 places in the last three days (old rank 498).

In our last Algorithmic Curation Round, consisting of 249 contributions, your post is ranked at #155.

Evaluation of your UA score:
  • You've built up a nice network.
  • The readers like your work!
  • Try to improve on your user engagement! The more interesting interaction in the comments of your post, the better!

Feel free to join our @steem-ua Discord server

Congratulations @bobdos! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 57000 upvotes. Your next target is to reach 58000 upvotes.

Click here to view your Board of Honor
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Saint Nicholas challenge for good boys and girls

Support SteemitBoard's project! Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63466.84
ETH 2636.54
USDT 1.00
SBD 2.76