Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #ludumdare on irc.afternet.org (Info)

Ludum Dare 26 — April 26th-29th Weekend — Theme: Minimalism

  • Judging Ends: in 1 day, 6 hours, 40 minutes, 47 seconds
  • Play and Rate Games | View All Games | Edit | View My Entry
    Twitter | #ludumdare on irc.afternet.org

    [ Warmup Weekend | Real World Gatherings | Tools | Ludum Deals (yep, we got it) ]


    Contiguous wrapping terrain

    Posted by
    April 18th, 2009 3:47 pm

    I wanted randomly generated wrapping terrain. Perlin Noise! Done. But I want lakes, so I throw in a flood fill. Done! But I don’t want to deal with programming boats or whatever, so I want all of the land to be contiguous. I want people to be able to walk from any piece of land to any other piece of land, so there can be no islands. That was trickier, but, inspired by Photoshop’s “solarize” filter, I came up with an algorithm to generate contiguous wrapping terrain (99.99% of the time), with no islands and plenty of lakes:

    wonderfl example

    Tags:

    Leave a Reply

    You must be logged in to post a comment.


    All posts, images, and comments are owned by their creators.

    [cache: storing page]