Open danprince opened 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:
Managed to figure out a few components here:
if (stage.meta.level.name === "crypt") { ... }
.Stage.fromLevel(level)
Generate basic levels that include a variety of objects. Maybe build from prefabs?