Java中的平坦地形生成 [英] Flat Terrain Generation in Java

查看:154
本文介绍了Java中的平坦地形生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在研究2D生存游戏,我想生成自己的自定义地形问题,我不知道怎么做!我想使它类似于 Minicraft (不是我的世界),它是随机平坦的地形,但我有不知道怎么做。我尝试理解Notch的实际代码,但这看起来都像是胡言乱语。

I am currently working on a 2D survival game and I want to generate my own custom terrain problem is, I don't know how! I wanted to make it similar to Minicraft (not minecraft) where it is random flat terrain but i have no clue how to do so. I tried making sense of Notch's actual code but it all seems like gibberish.

如果有人可以将我链接到教程或至少解释如何做,请做。

If anyone could link me to a tutorial or at least explain how to do it please do.

推荐答案

示例 实现Icon 并使用 TexturePaint 来合成地面图块。

This example implements Icon and uses TexturePaint to synthesize ground tiles.

这篇关于Java中的平坦地形生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆