GithubHelp home page GithubHelp logo

boyquotes / gddiggerdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rkcf/gddiggerdemo

0.0 0.0 0.0 232 KB

A demo of digger based procedural level generation in godot

License: MIT License

GDScript 100.00%

gddiggerdemo's Introduction

gdDiggerDemo

./common/assets/screenshot.png

An example project using digger algorithms for procedural level generation.

There are two types of diggers implemented here. A RoomDigger and a CorridorDigger. RoomDiggers dig and create rooms, while the CorridorDigger makes pathways and corridors between rooms.

The basic algorithm is as follows:

  1. Pick starting square (somewhere around the middle)
  2. Place a room digger at this location and dig a room out
  3. Generate a random number of corridor diggers in the newly created room. They will dig random corridors out
  4. A new room digger is spawned at the end of the corridor.

This cycle then repeats for a set number of generations to generate the full level

MIT Licensed

Ideas

  • Add a noise layer that serves as an attractor for turning direction preference. May allow for more natural looking room systems.
  • Prune unneeded spindly hallways
  • As corridor digger tunnels around, they stop and think to themselves: is this a good place to build a room? If so they destroy themselves and spawn a room builder
  • save preset and reload previous preset when starting a new instance
  • add function for corridor digger back fill corridor

gddiggerdemo's People

Contributors

rkcf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.