Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Create 2 procedurally generated 2D roguelite in Godot 4.4
Rating: 4.0 out of 5(143 ratings)
1,200 students

Create 2 procedurally generated 2D roguelite in Godot 4.4

Learn how to make game like Nuclear Throne or Enter the gungeon using Godot 4.4
Created byJMG Studios
Last updated 8/2025
English
English [Auto],

What you'll learn

  • Learn the fundamentals of Godot 4
  • Learn how to create a procedural generation algorithm
  • You will learn the fundamentals mechanics of a 2D Roguelike game
  • You will build a prototype that you will be able to sale

Course content

6 sections84 lectures12h 36m total length
  • Setting up the level generation scene and node structure4:54

    Set up a 2D roguelite level generation workflow in Godot 4.4 by creating a scene with a 32x32 ground tile map layer, a camera, and a tile set.

  • Creating all the variable needed for the walker9:03

    Export variables in a Godot 4.4 2D project to power a procedural world generator, including max_iteration, custom_viewport_size, step_size, ground_chance, ground_tile, borders, and a workers array.

  • Creating the procedural generation walker algorithm22:47

    Explore creating a procedural generation walker algorithm in Godot 4.4 by implementing multiple walkers on a tilemap, resetting simulation with input, and managing boundaries, ground tiles, and iterations.

  • Generating the background with collision shape12:25

    Generate a background with collision by configuring a background tile map and physic layer, computing grid size from the viewport and tile size, and placing tiles.

  • Making the level generation instant5:33

    Enable instant procedural generation of 2d roguelite levels in Godot by implementing create_level_instant, adding a generation toggle, and updating iteration control and background filling.

  • Creating the background terrain8:59

    Create the background terrain by importing and configuring a tile set, painting terrain with a bitmask, and saving a terrain resource for procedural generation in Godot 4.4.

  • Calling the background terrain in our procgen algorithm11:00

    Create a procedurally generated 2D roguelite in Godot 4.4 by integrating the background terrain with the generator, building a viewport-driven grid, filling empty cells, and applying terrain to the background.

  • Instancing the Player in the level generated with a Player handler object24:54

    Create a reusable player scene and a player handler to instantiate the player at the leftmost tile in a procedurally generated level, using signals to coordinate ground generation and placement.

  • Placing exit in the level17:15

    Place an exit in a procedurally generated 2D roguelite level using Godot 4.4, at the rightmost ground tile or at the spot maximizing distance from the player.

  • Placing object in the level part 113:10

    Create an object handler in Godot 4.4 to place ammo, enemies, energy ball, and misc objects on a procedurally generated 2D roguelite level, excluding the exit tile.

  • Placing object in the level part 210:23

    Build a generic place_object_type function in Godot 4.4 to place colored, sized objects with names. Apply it to ammo, enemies, and energy in a procedurally generated level.

Requirements

  • A bit of programming knowledge is needed (knowing function, variable, etc), but I'll teach you the rest

Description

** THIS COURSE HAS BEEN RECENTLY UPDATED for GODOT 4.4**

In this course you will learn how to create a procedurally generated 2D Roguelike similar to games like Nuclear Throne or Enter the gungeon. We will use an algorithm called random walker that we will use to create automatically new levels: everytime we will load our level a new one will be automatically generated, which open the gate for infinite levels. We will learn how to place our player, groups of enemies and exit inside it, as well as instancing ammunitions when our enemy dies. We will also create from scratch a player with typical roguelike movement and shooting mechanic like having the rotation of our player and his gun based on the position of the mouse, we will learn how to configure a mouse icon that is animated, how to create enemies that can patrol randomly and chase you once you’ve been detected, and way much more.

Here is a list of the things we will learn together:

  • Generating procedurally a level that is autotiled with terrains and collisions shape

  • Rotating the gun and the player toward the mouse position

  • Instancing enemies inside the border of our generated level

  • Having our enemy chasing us

  • Being able to collect ammo by looting them inside our level

  • Having a countdown that restart the level when reaching zero

  • Creating shader to damage the player

  • Having screen shake when the bullet explode

  • Having a player life system

  • Having an exit portal that we need to find to continue playing the game

I’ve been enjoying making this new course as I am fascinated by procedural generation, and I hope that this course will be the right entry gate for you if you want to go deeper into that segment of programming that is rarely taught in a way that is complete and accessible for beginner programmer.

The asset will be provided with this course, so you just have to enroll and start coding.

So thank you for reading this and considering buying this course, and I’ll see you in the first lecture!

Who this course is for:

  • This course is targeted first for intermediate programmer but is accessible to beginner looking to learn more how works procedural generation