Procedural Road Network Generation In Unity!

Опубликовано: 29 Сентябрь 2024
на канале: Winglett Entertainment
5,547
28

This is the first stage of a procedural town generator.

The basic idea is that it starts with a line. That line can randomly move forward, turn left or right, or branch off into another line. The system iterates over and over and eventually it creates a pretty good looking road network. The next stage is to convert the lines into evenly spaced coordinates that fit on the grid. Then, each coordinate is compared against the 4 adjacent grid spaces, and using that information it chooses the type of road to place there (straight, corner etc). The white squares shown next to the road is the beginning of spawning houses. Each white square represents a potential spawn location for a house or building.

Follow us on twitter for more:   / _winglett  
Facebook:   / winglettente.  .
Website: http://winglett.co.nz/

Download the game jam version of Radical Relocation here: https://ldjam.com/events/ludum-dare/4...