top of page

Procedural City ( WIP )

The idea behind this project is to create a game based on Townscaper.

The will is to grant the player the opportunity to build a living city although he only has a few actions. In this case, he can simply build roads et choose to add houses along as he wants.

Project realized on Unreal Engine 5.

Screenshot_3.png

At the beginning, the system creates a grid of points which will permits later to get importants informations about the elements' position.

When the player click on the map, an indicator is displayed, significating the starting point of the future road.

The road system is setuped to create some only in straight lines. Thus, when the player click again, the pointer's closest point available to create this straight line is chosen.

Segments of roads are then instanciated along the path, using the last known positions of the grid.

If a new road is created and makes an intersection with an already existing road, the impacted road segments carry out a proximity check for potentials segments. The interacting mesh will then be updated to match the road placement.

The player can choose to place habitations alongside the roads when they're created. At the instanciation of the road segment, a random controlled number of points of the grid, adjacent to the road, is chosen randomly to create a house.

The house's mesh is then picked also randomly and orientated to face the road segment it's associated with.

© 2023 by Mazeau Grégoire

bottom of page