Luokat: Kaikki - maps - methods

jonka Mike Ton 10 vuotta sitten

347

Unity3d_Procedural

The text outlines the structure and functionality of a procedural content generation system used to create dungeon maps within a game. It highlights several key components, including the Materializer, which is responsible for rendering the world map, and a set of generator scripts that produce various types of maps and dungeons.

Unity3d_Procedural

Procedural

Pro D

Materializer.cs
Materializer.Instance.MaterializeWorldMap()

//places prefabs

//show dungeon
Pro­DManager.cs
Generator_Generic_World.Generate()

//generates maps

//generators are static

MethodLibrary.cs

These generators are static, so they don’t need to be instantiated. They also serve as examples for you, on how to make your own generators. Each of them uses methods from the static MethodLibrary.cs.

MethodLibrary.cs contains all methods for creating rooms, caverns, doors etc. You should see these methods as building blocks and we encourage you to experiment with them and write your own map generator scripts. All the methods of the method library are carefully commented and

//contains all methods for creating rooms, caverns, doors etc

ex:

Generator_Dungeon.cs

//generates world

//generate dungeon