问题
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.
回答1:
This example implements Icon
and uses TexturePaint
to synthesize ground tiles.
来源:https://stackoverflow.com/questions/11589008/flat-terrain-generation-in-java