Warning: session_start() [function.session-start]: open(/home/93535/data/tmp/sess_0cecb856927891082ec4a25b828c7516, O_RDWR) failed: Permission denied (13) in /nfs/c06/h06/mnt/93535/domains/josephknight.com/html/wp-content/plugins/instagrate-to-wordpress/instagrate-to-wordpress.php on line 48

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /nfs/c06/h06/mnt/93535/domains/josephknight.com/html/wp-content/plugins/instagrate-to-wordpress/instagrate-to-wordpress.php:48) in /nfs/c06/h06/mnt/93535/domains/josephknight.com/html/wp-content/plugins/instagrate-to-wordpress/instagrate-to-wordpress.php on line 48
2D Cave Generator Looking Good | JosephKnight.com Art & Design

These rough draft caves are entirely procedurally generated using a customized Perlin noise algorithm.

So I’ve been working off and on the past few days with this game idea I’ve had for over a year now. It features you as a space alien that crashes his ship on a desolate planet and must explore underground to find the materials and supplies needed to get your ship back up and running again. Then it’s off to the next planet.

My first task was to get some procedurally generated caves on the screen and I’m happy to say, after a couple of days worth of learning Java and writing my own Perlin Noise class I’ve got some pleasing results.

Big thanks goes out to Herman Tulleken over at devmag.org.za for this excellent tutorial in particular. His great explanation helped turn Perlin’s original and very difficult to read algorithm into something approachable to a practical newb like me. Once I have my custom Perlin noise class fine tuned and cleaned up I’ll try to post it here for anyone who may find a use for it.

Next step: I’ll either create several layers of cave depth behind the initial generated terrain for a nice pseudo 3D effect, or I’ll pursue creating mountains on the surface and lava at the core of the planet. The fun’s already starting!

Bookmark or Mention this Article

  • Griede

    hmm… i do indeed hope you are still active…. and this idea, it is a good one so i do hope you continue it. regardless of that hope, i felt obliged to mention there is a game SIMILAR to this idea for the original Nintendo, i believe it was called solar jet man. however, this is no reason not to pursue this project, merely a reflection of the fact that your idea is very much sound in principal and theory and should go somewhere :)

  • Pingback: Quora

Warning: Unknown: open(/home/93535/data/tmp/sess_0cecb856927891082ec4a25b828c7516, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/93535/data/tmp) in Unknown on line 0