Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Master Godot 4: Craft a Survivors Roguelite with GDScript
Rating: 4.3 out of 5(18 ratings)
196 students

Master Godot 4: Craft a Survivors Roguelite with GDScript

Craft a Roguelite Auto-Battler with Godot 4 & GDScript
Created byChris Tutorials
Last updated 1/2026
English

What you'll learn

  • Develop a "Survivors Like" game from scratch using Godot 4.4.1 and GDScript
  • Implement top-down 2D character movement and controls.
  • Set up game assets, audio, and useful plugins like Limbo AI for state machines and Collapse Folders for editing workflow.
  • Work with Godot's 2D scene system, nodes, and editor UI integration.
  • Handle game mechanics such as player stats, experience, leveling, damage, and item pickups.
  • Apply state machines for enemy AI behavior (e.g., idle, chasing, death).
  • Manage various game elements, including projectiles, hitboxes, hurtboxes, and randomized drops.

Course content

8 sections62 lectures12h 4m total length
  • Setup Godot Project6:38

    This video initiates a Survivors-like project in Godot 4.4.1 (non-mono, GDScript-only). We download the engine, create a new project named "script-survivors" with a mobile renderer for pixel art, and explore the Godot editor interface, highlighting 2D nodes, UI control nodes, the file system, viewport, and inspector for a beginner-friendly setup.

  • Art, Audio, Plugins Installation for Project8:46

    This video guides through setting up assets and plugins for the project. We import free versions of Pixel Crawler (characters, weapons, enemies), Crimson Fantasy GUI, Raven Fantasy icons (full sprite sheets), M5X7 font, Leo Paz's RPG Essentials SFX, and Tallbeard's chiptune music into art and audio folders. We install two plugins: Collapse Folders for file system navigation and Limbo AI (4.4) for state machines, verifying their functionality in Godot 4.4.

  • Implement top-down 2D player movement (WASD + velocity)34:39

    In this lesson, we’ll create a top-down player character in Godot 4 step by step. You’ll set up a CharacterBody2D, add a sprite and collision shape, and load your player into a world scene. We’ll also adjust camera zoom for pixel art, clean up project structure, and configure input for WASD movement. Then, we’ll write a clean GDScript to move the player using move_and_slide() with real-time input.

  • Play Animations from Spritesheets9:51

    This video demonstrates switching the player character's sprite sheet to the knight idle from the Pixel Crawler Pack and creating animations using an Animation Player. We set up idle, run, and death animations by keyframing texture, H-frames, V-frames, and frame properties, adjusting durations and disabling looping for death. The setup simplifies animation for left-right facing characters, with a state machine planned to control animation switching in the next video.

  • Player State Machine18:49

    This video introduces a hierarchical state machine (LimboHSM) to manage player animations. We create a PlayerHSM script to control the player as the agent, add a MoveState to handle idle and run animations, and use exported variables for animation names. We ensure the state machine activates on start with set_active(true) and debug using breakpoints to confirm the MoveState triggers the idle animation on entry, setting the stage for input-driven animation switching.

  • Player Input as Component13:08

    This video refactors the player input system to improve modularity. We create a PlayerInput node and script to handle movement input, defining action strings (left, right, up, down) and processing input events in the _input method. The script tracks direction and facing vectors, ensuring facing is set only for non-zero inputs. The Player script is updated to reference the PlayerInput node via an exported variable, using its direction for movement, maintaining clean separation of concerns.

  • Quiz 1
  • Switch Animations with Signals9:17

    This video enhances character animation control by integrating the PlayerInput script with a blackboard plan in the PlayerHSM. We bind the direction and animation_player properties to the blackboard, allowing the MoveState script to access them without direct dependencies. The script triggers run or idle animations based on the direction and adjusts sprite offsets in the animation player to align idle, run, and death animations, addressing mismatches in sprite sheet sizes.

  • Flipping a 2D Character13:41

    This video shows how to add sprite flipping to the player character based on movement direction. We create a FlipToFacing2D parent node to handle X-scale flipping, attach a script to respond to player input signals, and set up a facing_changed signal in the PlayerInput script to notify when the facing direction changes. The script ensures proper flipping with a guard against redundant updates and initializes the flip direction on load for flexibility.

Requirements

  • This course is for beginner to intermediate programmers. It uses GDScript, an easy-to-learn language. No extensive prior programming experience is required; concepts are taught slowly.
  • Familiarity with basic computer operations for downloading and installing software.
  • Download and install the Godot Engine 4.4.1 (non-mono version is recommended for web export)

Description

Want to build your own action-packed Roguelite auto-battler, even if you’re new to coding?

This beginner-friendly course walks you step-by-step through creating a complete 2D game — Script Survivors — using Godot 4 and GDScript, Godot’s powerful and beginner-friendly scripting language. With no prior coding or game development experience required, you’ll learn by doing, and build a polished prototype from scratch!

What You’ll Learn:

  • Master GDScript Basics and Best Practices: Write clean, reusable code with proper naming conventions (e.g., snake_case), export variables for easy tweaking, and self-documenting scripts using comments for maintainability.

  • Build Core Gameplay Mechanics: Implement auto-attacking weapons (like spears and scythes), enemy spawning systems with adjustable difficulty curves, experience (EXP) collection, and a dynamic player leveling system with impactful upgrades.

  • Leverage Godot’s Scene and Node System: Organize your game using scenes for modularity (e.g., player, enemies, and world scenes), nodes for game objects (CharacterBody2D, Sprite2D), and timers for precise event scheduling.

  • Create Engaging Combat Systems: Design health and damage mechanics, including collision shapes for precise interactions, invincibility frames, and multi-target weapon upgrades for satisfying gameplay.

  • Add Polish with UI and Save Systems: Build intuitive user interfaces (e.g., high score displays, level-up screens) using control nodes and implement a JSON-based save/load system to track high scores for enemies defeated and survival time.

  • Use State Machines for Smarter Logic: Utilize the Limbo AI plugin to manage character and enemy behaviors (e.g., idle, run, attack states), simplifying complex logic and preparing you for advanced AI patterns.

  • Apply Real Game Development Patterns: Learn transferable skills like encapsulation (e.g., GameManager and SaveLoad scripts), resource management (e.g., PlayerContext), and project organization for scalability to larger projects.

By the End of This Course, You’ll:

  • Have a fully playable 2D action game with enemies, upgrades, and a main menu, ready to showcase in your portfolio.

  • Confidently navigate Godot’s editor, from the project manager to the inspector, and use tools like the AnimationPlayer and atlas textures for pixel-perfect visuals.

  • Be equipped to create your own games with a strong foundation in Godot 4, GDScript, and game development workflows, ready to tackle new projects with ease.

Why This Course?

  • Beginner-Friendly: Starts from the basics, with clear explanations of Godot’s interface, GDScript syntax, and game dev concepts, ensuring a smooth learning curve.

  • Hands-On Learning: Follow along to build "Script Survivors," a complete prototype with pixel art, chiptune music, and sound effects, guided by practical examples.

Real-World Skills: Learn professional techniques like state machines, JSON serialization, and modular design, preparing you for bigger game dev projects.

Jump in now and start crafting addictive action games that keep players coming back for more!

Who this course is for:

  • New game creators with no coding skills, excited to build an addictive Vampire Survivors-style action game in Godot 4.
  • Beginners seeking a hands-on path to learn GDScript and create a complete 2D roguelike from scratch.
  • Aspiring developers finishing with a portfolio piece, eager to showcase a playable game to kickstart their game dev career.
  • Hobbyists building confidence to design and animate pixel art characters, ready to explore their own game ideas with a solid Godot foundation.