Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 2.26 KB

README.md

File metadata and controls

60 lines (37 loc) · 2.26 KB

Procedural Worlds

Procedural Worlds is an open-source project aimed at learning and implementing Wave Function Collapse (WFC) to generate realistic and dynamic hexagonal tile maps, similar to those seen in popular games and simulations. This project uses the Kaykit Medieval Hexagon asset pack and integrates the principles from various resources to create an engaging and educational procedural generation system.

Project Goal

The primary goal of this project is to understand how WFC works and explore the potential of creating more realistic worlds using this algorithm. The project starts with simple road hexagons and aims to expand into more complex and realistic worlds, as depicted in the image below:

Procedural Worlds Example

Resources Used

Getting Started

Prerequisites

  • Unity 2022.3 or later
  • Basic knowledge of C# and Unity

Installation

  • Clone the repository:
    git clone https://github.com/yourusername/ProceduralWorlds.git
  • Open the project in Unity.
  • Ensure the Kaykit Medieval Hexagon Pack is imported into your project.

Usage

  • Generate the hex map using the HexMapGenerator.
  • Initialize the WFC using WFCManager.
  • Start the WFC process by collapsing tiles one by one or all at once.

Screenshots

App Screenshot

Roadmap

  • Implement basic WFC for road hexagons
  • Expand tile set to include various terrain types (forests, rivers, mountains)
  • Improve adjacency logic for WFC
  • Add more complex rules for tile adjacency
  • Implement fixed files
  • Implement biomes and biome transitions

License

This project is licensed under the MIT License. See the LICENSE file for details.