Top Down Level Generation

0 favourites
  • 3 posts
From the Asset Store
Template for dungeon/maze generation, using wave function collapse
  • Hi! I want to make a Binding Of Isaac style game, basically a zelda style roguelike. I've been struggling with randomly generating a world though, I know there are 2 major ways to tackle this:

    1) Not actually generating a room but picking a random preset layout for each room

    2) Completely randomize the generation through algorithms, arrays and such

    I'd be happy to take either approach, the issue gets more complicated when rooms have to be persistent, a player must be able to leave a room, re-enter and be in the same room. This is where my troubles start, but other issues include putting doors in the correct places and ensuring the amount of rooms is kept manageable

    Sorry if my post seems rather nonsensical but I have assumed a basic knowledge of The Binding Of Isaac (which everyone should play by the way)

    Subscribe to Construct videos now
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Check this out:

    scirra.com/tutorials/360/generating-a-random-tile-map

    will show you a fast way to draw a matrix, and poke random values into a Array.

    These can later be loaded and saved from disk, Ajax, or the node webkit plugin.

    Easy way is to use web storage.,.. Node webkit is a little more complex.

    There is a Load and save system too, so each room could be a layout that you generate, and save on exiting, and loads on entering. It should keep everything the same, like the music playing and some off the other objects.

    scirra.com/tutorials/526/how-to-make-savegames

    That is the new save/loiad system ^^

  • I'd be happy to take either approach, the issue gets more complicated when rooms have to be persistent, a player must be able to leave a room, re-enter and be in the same room. This is where my troubles start, but other issues include putting doors in the correct places and ensuring the amount of rooms is kept manageable

    For the doors, leave a breadcrumb with the X and Y value of the door you exit using the webStorage plugin. Then you can have code that generates unvisited rooms, and looks in the webstorage for the Key "DoorsXandY", and spawns an exit door in the new room in the appropriate place,

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)