Volver al ranking

gdquest-demos/godot-4-procedural-generation

GDScript

Procedural generation algorithms and demos for the Godot game engine

godot-engineprocedural-generationprocgenpcggodot-proceduralgdscript
Crecimiento de estrellas
Estrellas
1.9k
Forks
101
Crecimiento semanal
Issues
0
1.9k
may 26may 26jun 26jul 26
README

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
Repositorios relacionados
godotengine/awesome-godot

A curated list of free/libre plugins, scripts and add-ons for Godot

Creative Commons Attribution 4.0 Internationalgodotgodot-engine
10.4k567
Orama-Interactive/Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!

GDScriptMIT Licensegodot-enginegamedev
pixelorama.org
9.9k526
0xFA11/MultiplayerNetworkingResources

A curated list of Multiplayer Game Network Programming Resources

Cgame-developmentgamedev
multiplayernetworking.com
8.6k537
0xFA11/GameNetworkingResources

A Curated List of Multiplayer Game Network Programming Resources

Cgame-developmentgamedev
gamenetcode.com
7.6k484
mbrlabs/Lorien

Infinite canvas drawing/whiteboarding app for Windows, Linux and macOS. Made with Godot.

GDScriptMIT Licensenotebookdrawing-app
6.7k306
RodZill4/material-maker

A procedural textures authoring and 3D model painting tool based on the Godot game engine

GDScriptMIT Licensegodotengineglsl
5.7k356
liangxiegame/QFramework

Godot/Unity3D System Design Architecture

C#MIT Licenseunityunity3d
qframework.cn
5.4k862
TokisanGames/Terrain3D

A high performance, editable terrain system for Godot 4.

C++MIT Licensegodot-plugingodot4
4.1k283
gdquest-demos/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.

GDShaderOthergodot-shadershaders
4k238
passivestar/godot-minimal-theme

Godot Minimal Theme

MIT Licensegodotgodot-engine
3.8k55
GodotSteam/GodotSteam

An ecosystem of tools for Godot Engine and Valve's Steam. For Linux, Mac, and Windows.

godotenginesteamworks
godotsteam.com
3.7k223
Revolutionary-Games/Thrive

The main repository for the development of the evolution game Thrive.

C#Otherthrivegame
revolutionarygamesstudio.com
3.6k609