top of page

Labyrinth's Legacy

Design Documentation

Introduction

Labyrinth's Legacy is an adventure survival game where the player starts with nothing, gathering materials, defeating enemies, and acquiring resources. With these resources, players can craft weapons and armor to prepare themselves for the ultimate challenge, defeating the boss.

Procedural Generation

LabyrintMapGeberation.png

1. Terrain Generation

  • Defines terrain size.

  • Uses Perlin Noise to create natural-looking height variations.

  • Ensures terrain edges are uniform to avoid abrupt height differences.

2. Saving & Loading

  • Saves random terrain offsets for consistent world regeneration.

  • Saves object placements to preserve the world state.

  • Loads previously saved objects when the scene is reloaded.

3. Object Instantiation

  • Spawns objects dynamically.

  • Ensures objects are correctly placed on the terrain surface.

  • Assigns objects to a parent transform for organization.

Building

1. Preparing the object for placement

2. Positioning the object in front of the player

3. Checking placement validity

4. Snapping system

5. Confirming Placement

What I learned

I learned how to design and implement a complete inventory system, including item storage and a UI that clearly displays collected items. Based on item type, the system supports equipping and crafting, allowing items to behave differently depending on their role.

I also developed a build mode that lets the player construct houses and other structures using the materials that the player gathered.

 

Finally, I learned how to procedurally generate terrain for the first time, creating randomized worlds and saving that generated terrain so the player consistently returns to the same environment.

bottom of page