Skip to content

A Procedural Game Map Generation algorithm inspired by Cellular Automata

Notifications You must be signed in to change notification settings

zhixuanevelynwu/random_island_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Procedural Game Map Generation using Multi-leveled Cellular Automata

Table of Contents

About

This is an Procedural Game Map Generation Algorithm that outputs natural-looking game environments. The algorithm is designed to generate flexible and customizable maps.

Getting Started

Prerequisites

Have Python3 environment and Pygame Library installed to run the map visualization locally.

Installing

Clone the repo to your local folder

git clone https://github.com/zhixuanevelynwu/random_island_generator.git

Usage

On your terminal, navigate to the project folder and run

python3 show_map.py

You will get a randomly generated visualization window. At this point, you can use "S" key to generate a completed map with all islands, desert, and mountain elements: initial window


OR

You may use "I" key to first generate islands: initial window

"M" key to generate mountains: initial window

Then, "D" key to generate deserts and beaches: initial window
Whenever you want a brand new map, type "N".
Use "F" key to save a map to the folder.
To tweak the parameters and generate different looking maps, go to automaton.py file and modify the init function. Below are some examples of maps generated using different parameters: initial window initial window initial window

About

A Procedural Game Map Generation algorithm inspired by Cellular Automata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages