• Stars
    star
    1,103
  • Rank 42,076 (Top 0.9 %)
  • Language GDScript
  • License
    Other
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Procedural generation algorithms and demos for the Godot game engine

Branch remarks

this branch contains updates to the original course code for Godot 4. The scripts will be annotated regardings changes like tihs:

# Camera zoom logic seems to be reversed between Godot 3 and 4, bigger numbers are now more zoomed in

I plan to update the scripts and remove these comments for future reference, when Godot 4 is standard and changes over Godot 3 are no longer relevant and comments about it amount to noise. Also the current effort is change as little as neccessary. Only later it will be about adapting to Godot 4 best practises.

-Thomas

Godot Procedural Generation

project banner

Godot PCG (Procedural Content Generation) is a project to build a series of algorithms and demos to learn about procedural generation. The algorithms are from our course Godot PCG Secrets.

➑ Follow us on Twitter and YouTube for free game creation tutorials, tips, and news! Get one of our Godot game creation courses to support our work on Free Software.

Screenshot of a level generated by the Random walker algorithm

Available demos

RandomWalker

This is an algorithm as seen in Spelunky. This algorithm uses a node that walks randomly on a grid, places hand-designed level chunks, and randomizes them to generate unique levels.

Level generated by the Random walker algorithm

WorldMap

This project demonstrates a technique for generating a world map with biomes and rivers, heavily relying on shaders. It's inspired by Procedurally Generated Wrapping World Maps in Unity C# although it uses a completely different implementation.

Generated world map

BasicDungeonGenerator

A basic generator to get started with procedural content generation. Creates rectangular rooms, rooms with organic shapes, and corridors connecting the rooms.

ModularWeapons

Procedural or emergent gameplay system where you can stack movement modifiers and different emitters to generate weapons. A game that references techniques like this are Binding of Isaac or Enter the Gungeon.

Infinite worlds

In SpaceInfiniteGeneration/, you'll find four infinite world generation demos. You can travel infinitely with your ship, the world never ends. The first two demos generates worlds full asteroids using white noise and blue noise, respectively.

Asteroid field generated with blue noise

The LayeredWorldGenerator scene shows how to use layered generation to create a universe with planets, moons, trade lanes, and asteroid belts.

Screenshot of a world generated by our layered algorithm

Finally, the PersistentWorldGenerator builds upon the previous demo and adds the ability to make persistent changes to this infinite universe.

How to use

Clone the repository and import the godot/ directory as a Godot project. Each demo is in a separate sub-directory.

The start-project/ directory contains starters for students of our course Godot PCG Secrets and not the complete demos.

In the demos, where relevant, we use a timer to show you the content generation steps, as the final level would otherwise appear instantly. Doing so helps to visualize and debug algorithms. Remove that timer code for the algorithm to run at full speed.

Contributing

Contributors are welcome!

If you encounter a bug, please open an issue.

If you want to contribute to the project, for instance, by fixing a bug or adding a feature, check out our:

  1. Contributor guidelines.
  2. GDScript style guide

Licenses

This project is dual-licensed:

  • The source code is available under the MIT license.
  • Art assets (images, audio files) are CC-By 4.0. You can attribute them to GDQuest and contributors (https://www.gdquest.com/).

More Repositories

1

godot-shaders

A large library of free and open-source shaders for the Godot game engine. Here, you'll get 2D and 3D shaders with playable demos.
GLSL
2,164
star
2

learn-gdscript

Learn Godot's GDScript programming language from zero, right in your browser, for free.
GDScript
1,913
star
3

godot-3-demos

Dozens of free and open source demos for the Godot game engine, version 3. Head to the link below for newer demos for Godot 4+
GDScript
1,753
star
4

godot-open-rpg

Learn to create turn-based combat with this Open Source RPG demo βš”
GDScript
1,432
star
5

godot-steering-ai-framework

A complete framework for Godot to create beautiful and complex AI motion. Works both in 2D and in 3D.
GDScript
1,144
star
6

godot-make-pro-2d-games

A-RPG demo made with Godot, MIT-licensed, from our Godot course
GDScript
891
star
7

godot-3d-mannequin

An Open Source 3d character and character controller for the Godot game engine
C#
760
star
8

blender-power-sequencer

Add-on for video editing in Blender 3D: edit videos faster! Included in Blender 2.81+
Python
688
star
9

godot-2d-space-game

A 2D space exploration and mining game made with Godot and our AI framework
GDScript
675
star
10

godot-visual-effects

Open-source visual effects designed in Godot, from our VFX Secrets course.
GDScript
622
star
11

godot-platformer-2d

2d Metroidvania-inspired game for the 2019 GDquest Godot Kickstarter course project.
GDScript
532
star
12

godot-power-pitch

International pitch for the Godot Game Engine, made in Godot, available in 15+ languages
GDScript
383
star
13

godot-2d-builder

A simulation game demo made in Godot and inspired by Factorio.
GDScript
375
star
14

godot-demos-2022

Free and open-source Godot demos for learning, with guides and tutorials: 2022 edition.
GDScript
362
star
15

godot-beginner-2d-platformer

Learn to create a 2d platform game with the Godot game engine. This is a beginner programming tutorial.
GDScript
326
star
16

krita-batch-exporter

A Free Krita plugin to batch export layers and groups with maximum flexibility. Scale, trim, export multiple copies of your layers...
Python
281
star
17

krita-free-brushes

A collection of Free Krita brushes, by GDQuest, for concept artists, illustrators and game artists
256
star
18

gdscript-docs-maker

Create documentation and class references from your Godot GDScript code
Python
240
star
19

godot-kickstarter-2019

Create your Own Games with Godot, the Free Game Engine: sources from the January Kickstarter project from GDQuest
GDScript
238
star
20

godot-2d-jrpg-combat

A 2D Japanese RPG Active Time Battle demo for the Godot game engine
GDScript
182
star
21

godot-mini-tuts-demos

Code from our Godot mini tutorials
GDScript
128
star
22

godot-design-patterns

Code design patterns in Godot and in GDScript. State machines and the likes.
C#
123
star
23

godot-tours

A framework for interactive step-by-step tutorials in the Godot editor
GDScript
101
star
24

godot-2d-visual-novel

A Visual Novel demo made with the Godot game engine
GDScript
95
star
25

godot-2d-tactical-space-combat

A 2D Tactical Space Combat demo for the Godot game engine. Inspired by FTL
GDScript
90
star
26

godot-2d-rhythm

This demo is a rhythm game designed for the course Godot 2D Secrets.
GDScript
88
star
27

godot-2d-tactical-rpg-movement

Grid-based movement for a Tactical RPG
GDScript
79
star
28

godot-presentations

Create beautiful interactive presentations and localize them! Made with the Godot game engine
GDScript
69
star
29

krita-tileset-templates

Tileset and tilemap templates for Krita, Photoshop and Tiled 1.0
67
star
30

godot-getting-started-2021

Downloads for the Getting Started with Godot in 2021 free course.
GDScript
57
star
31

godot-2d-tower-defense

GDScript
50
star
32

product-packager

A portable shell program to package and prepare courses, tutorial series, and other products to release on e-commerce platforms like Gumroad and Mavenseed.
Python
50
star
33

godot-guides-v3.0

Work in progress guides and tutorials for the official Godot 3.0 documentation
GDScript
43
star
34

website

HTML
43
star
35

game-sprites

A library of Free game assets to prototype your games
38
star
36

godot-new-features-v3.1

Tutorial series and demos to learn the new features in Godot 3.1
GDScript
31
star
37

learn-gdscript-translations

Translations for the open-source app Learn GDScript From Zero
Python
31
star
38

godot-3d-fps-beginner-series

A beginner-friendly tutorial series hosted by James Taft to learn to create a First Person Shooter in Godot
GDScript
27
star
39

godot-demo-projects-remake

Proof of concept to greatly improve to the official godot demo projects repository.
GDScript
26
star
40

blender-proxies-generator

Command line program to generate video proxies faster for Blender's Video Sequence Editor, using ffmpeg
Python
26
star
41

blender-sequencer-multithreaded-render

Multithreaded renders for the Blender video sequence editor, from the command line
Python
25
star
42

godot-visualization-tools

Tools for debug drawing and animation for visualizations and tutorials
GDScript
23
star
43

godot-2d-action-platformer

GDScript
22
star
44

godot-steering-ai-framework-submodule

A complete framework for Godot to create beautiful and complex AI motion. Works both in 2D and in 3D. For use as Git submodules.
GDScript
21
star
45

godot-steering-ai-framework-demos

Repository of demos and test scenes for GDQuest's Steering AI Framework
GDScript
18
star
46

godot-debug-ui-toolkit

Modular UI components to create debug interfaces and add-on interfaces in Godot.
GDScript
15
star
47

meta

A repository to talk about GDQuest at large, guidelines, etc. all in one place. This is where public discussions that don't belong to a specific repository go.
13
star
48

godot-text-tools

A collection of addons to help to edit text and UI faster within Godot. Color palette, rich text editor...
GDScript
11
star
49

blender-power-sequencer-docs

Documentation sources for Power Sequencer, the Blender add-on for video makers
10
star
50

emacs-flycheck-gdscript

Emacs flycheck extension to lint GDScript code with gdlint
7
star
51

3D-graphics-benchmark-PoC

GDScript
5
star
52

GDPractice

A framework to create interactive coding practices in the Godot engine.
GDScript
4
star
53

godot-plugin-highlighter

Highlights parts of the editor interface that are under the mouse
GDScript
4
star
54

godot-addons

GDQuest Godot Addons
GDScript
4
star
55

godot-js-types

Javascript and Typescript types for Godot related files and the in-browser Godot runtime
JavaScript
3
star
56

godot-plugin-tour

Utilities to create Godot tours
GDScript
3
star
57

godot-colorpicker-presets

Reads a color presets hex file in the project directory and adds the colors to the editor ColorPicker for quick access.
GDScript
3
star
58

godot-learning-app-exporter

Exports Godot projects for usage in the GDQuest learning app
JavaScript
3
star
59

process-course

TypeScript
1
star