SkillAgentSearch skills...

Caverns

Procedural generated caverns with treasure spawn options

Install / Use

/learn @developwisely/Caverns
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Caverns

The following repo is a prototype for generating random caverns for game development use.

Cellular Automata (index.html)

This is the basic way of generating large open caverns. It doesn't quite serve what I'm looking for, but useful possibly for overworlds.

Guided Cellular Automata (guided.html)

This approach does the following:

  1. separates the entire board into X chunks
  2. fills out some blockers in the chunks
  3. randomly picks an entrance and exit chunk
  4. runs A-star to find the best path from entrance to exit chunks
  5. fills out the board cells based their chunk status
  6. runs cellular automata rules against the board

This gets straight forward results that directs the player from one point to another while still giving some randomness to the overall map.

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2y ago
Forks1

Languages

JavaScript

Security Score

70/100

Audited on Jun 12, 2023

No findings