Skip to content
bozar42 edited this page Apr 22, 2020 · 5 revisions

Godot Roguelike Tutorial

This tutorial guides you to build a simple Roguelike game with Godot engine. You can find the sample code here. The finished demo is available in another repository. The guide includes ten chapters. You can view the screenshot for the final product at the beginning of Chapter 9.

Below is a brief introduction.

  1. Before you start. Download Godot Engine. Set Visual Studio Code. Read official document.
  2. Export your first project. Add folders to manage files. Add a sprite to the game. Tweak export settings.
  3. Create a static dungeon. Get sprites from a tilemap. Create sprites by scripts. Add mock up GUIs.
  4. Listen keyboard inputs. Press arrow keys to move PC.
  5. Add a scheduling system. Let PC and NPCs act in turn.
  6. Restrict movement. Prevent PC from leaving the map or passing through walls.
  7. PC attacks NPC. Bump attack and remove an NPC. Let NPC respond to PC.
  8. Add GUI. Redesign GUI layout and update text dynamically.
  9. Reload or randomize the game. Press Space to restart. Put NPCs in random places.
  10. Write helper scripts. Some tips to improve developer's QOL.