Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Procedural Infinite Runner

An asset by AdrienP
The page banner background of a mountain and forest
Procedural Infinite Runner thumbnail image
Procedural Infinite Runner thumbnail image
Procedural Infinite Runner thumbnail image
Procedural Infinite Runner hero image

Quick Information

0 ratings
Procedural Infinite Runner icon image
AdrienP
Procedural Infinite Runner

Run away from Evil Godots forever.Full Godot C# project for procedural infinite terrain generation, with random items or obstacles spreading throughout the map, with physics enabled.

Supported Engine Version
4.4
Version String
1
License Version
MIT
Support Level
community
Modified Date
12 days ago
Git URL
Issue URL

Godot Procedural World Generation Demo Project

README Alt Text

Run away from Evil Godots forever.

Full Godot C# project for procedural infinite terrain generation, with random items or obstacles spreading throughout the map, with physics enabled. Mesh generation logic based on Sebastian Lague's Procedural Landmass Generation, optimized and customized to work in Godot 4.4 and lower. Works on PC and Android. Other platforms still untested, but probably work as well.

Demo Project

In the demo, you can play a simple character in third person view. Obstacles are generated and randomized throughout the infinite map. Mindless mobs spawn randomly around the player and move toward him. Try to run away as far away as possible from the starting point, but if you let the mobs get too close, the distance counter resets. This is a simple starter demo to showcase the project, but can be extended to support any actual gameplay. How to Play

  • You start on an elevated platform.
  • Move using WASD
  • Run using Shift. Consumes stamina.
  • Throw crates with Left Click. Crates don't do anything special. Consumes stamina.
  • Jump with Space
  • Fly with F. You must be in the air. Consumes stamina.

Replenish your stamina by collecting pink orbs.

Mobs are constantly spawned around the player. Mobs are cleaned-up when they get too far. Doing any sort of action will consume stamina, shown in the upper right bar. Once you're out of stamina, you can only walk.

Full Godot C# project for procedural infinite terrain generation, with random items or obstacles spreading throughout the map, with physics enabled. Mesh generation logic based on Sebastian Lague's Procedural Landmass Generation, optimized and customized to work in Godot 4.4 and lower. Works on PC and Android. Other platforms still untested, but probably work as well.

Key Features

  • Terrain generation, by default using Godot's Simplex Perlin Noise, but fully extensible and allowing any type of blend or crazy stuff.
  • Terrain LOD. Adjustable draw distance.
  • The mesh is generated around the player and cleaned depending on distance.
  • Objects can be spawned throughout the map, customizable and randomizable.
  • Physics enabled playable character and items.
  • Works surprisingly well on Android

Incomplete features

  • There are a selection of shaders to go along the terrain, which are largely incomplete/not working. With the mesh coordinates, it is possible to blend textures according to elevation/orientation, or any other variable supported in Godot.
  • There is the base code logic to create and save chunk files (FileWriter.cs), making it potentially possible to save chunks data on disk or transfer them to a remote server. This would allow persitent terrain deformation, but still untested.
  • Water spawns at elevation 0, but it's a simple mesh with no logic. Although terrain objects will not spawn under elevation zero, the character and mobs will not drown or swim.
  • For now there isn't any kind of variable exposed to customize generation, all must be done through code.
  • The project is somewhat over-engineered with some overkill functions and classes.
  • Works on Android, but there is no logic for touch movement

If you like this project, need help or have cool ideas, join our Discord!

Run away from Evil Godots forever.

Full Godot C# project for procedural infinite terrain generation, with random items or obstacles spreading throughout the map, with physics enabled.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Procedural Infinite Runner icon image
AdrienP
Procedural Infinite Runner

Run away from Evil Godots forever.Full Godot C# project for procedural infinite terrain generation, with random items or obstacles spreading throughout the map, with physics enabled.

Supported Engine Version
4.4
Version String
1
License Version
MIT
Support Level
community
Modified Date
12 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers