Random Room Generator

Author: 
el_bearduno
el_bearduno's picture
Assignee: 
Labels: 
Status: 
Priority: 

Create RoomGenerator class that creates multiple instances of TileGenerator to build a level layout.

Class
Room Generator
  • [serializable] TileGenerator tileGenerator;
  • [serializable] AnimationCurve roomCountDistribution;
  • [serializable] AnimationCurve roomWidthDistribution;
  • [serializable] AnimationCurve roomHeightDistribution;
  • private void GenerateRoom() { 
        //Use random offsets for each animation curve to determine the room count, and each rooms width and height.
        //Iterativey create each room at random position along room bounds.
    }

Comments

1

Found this super relavant tutorial on Unity3D.com:

BASIC 2D DUNGEON GENERATION

Submitted by el_bearduno on Mon, 2016-01-04 10:00
el_bearduno's picture

Add new comment

Basic Editor

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain Text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.