danprince / midas

đź«… Traditional roguelike where everything you touch turns to gold.
https://danprince.itch.io/midas
2 stars 0 forks source link

Level Generation #9

Open danprince opened 4 years ago

danprince commented 4 years ago

Generate basic levels that include a variety of objects. Maybe build from prefabs?

danprince commented 4 years ago

Current idea for level generation is to break it down into a level template and a layout template.

The level template will be responsible for setting the size of the stage and keeping track of the objects that can/should be spawned there.

The layout template determines the shape and type of terrain on the stage and can come in multiple different forms:

There'd be a handler function for each layout type that could be responsible for building a level object from the layout.

A few things to think about:

danprince commented 4 years ago

Managed to figure out a few components here:

image