I've been following this page
http://devmag.org.za/2009/04/25/perlin-noise/
as a guide to create my own perlin noise - it's been pointed out in the comments section that this is FBM noise, but that's irrelevant.
This is working very nicely so far, these are the results, after some 'cleaning' to remove as many artifacts as I can.
http://puu.sh/dayg9/2943aca5ce.png
Now that I've created my noise, I'm going to use it as an infinite map for a platform game. However, as you can see, there are some holes in my noise.
-Please note- this noise is meant for a 2D game!
My question is - how can I either fill in these holes, or stop the player from spawning inside them? Can't find an answer despite a lot of googling and thinking EXTRA hard.
Thanks for your time:)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…