Tayler✎
← back

Build Your Own World

Explore a 2D world generated from a seed

JavaProcedural GenerationData StructuresAlgorithmsGame Design

Overview

Procedural World Generator

Give the program a seed and it lays out rooms, connects them with hallways, and draws the walls and floors. Enter the same seed again and you get the same world. I wanted each layout to feel different while still giving you a way to get around.

Build Your Own WorldBuild Your Own World

Technical Features

Seed-Based World Generation

The seed drives the randomness, so I can recreate a layout when I need to debug it.

Room and Hallway Creation

The program places rooms and connects them with hallways so you can move through the map.

Object-Oriented Design

I split the Java code into classes for rooms, world generation, and rendering so I could work on each part separately.

Takeaways

A map can look fine at first and still be frustrating to move through. Being able to pull up the same layout again helped me look more closely at what went wrong and where to change the code.