Now that we have basic terrain types, you can imagine what comes next: we create an array of map tiles for each row.
现在有了基本地形类型,您可以想象得到接下来需要做什么:为每一行创建一个地图图像块数组。
To start, create a few different terrain types and throw together some really rudimentary map tiles to represent each terrain type.
首先,创建一些不同的地形类型并且集合一些极为初步的地图图像块以表示每个地形类型。
We can give individual terrain types different weights by pushing them into the pool multiple times and create more complex rules about what terrain types can touch.
我们可以通过将地图类型多次放入脚本中,为各种地形类型提供不同的权重,并且创建地形类型可以实现的更复杂规则。
应用推荐