-
Notifications
You must be signed in to change notification settings - Fork 16
This chapter is not about coding. Instead, I'd like to talk about the prerequisites for the project.
In this tutorial, I refer to Roguelike as a single player, turn based, top-down view, dungeon crawling game. I assume that you are familiar with so called traditional Roguelikes such as Dungeon Crawl Stone Soup. I also assume that you have made RL games before with another language or game engine. So I would not bother to explain why do we need a scheduling system or what does continue
mean in a while
loop. My main focus is to show you some of the interesting features of Godot engine and GDScript and how to use them to build a simple Roguelike demo. Quote from GodotRoguelikeDemo/README.md:
When the game starts, there is a square block of walls in the map center and three to six enemies appear at random positions. Press arrow keys to move PC. Wall blocks movement. Kill NPC by bumping. NPC sends a warning message when PC is nearby. There is an counter to show how many turns have passed since the game begins.
This tutorial is based on Godot engine 3.2.1
. You can download the engine (64-bit standard version) and export templates (standard) from the official site. An alternative way is to get it from Steam, which allows you to download the engine, the template and a dozen demos in one go.
Although Godot provides a text editor inside the engine, I prefer to work with VSC. The extension, geequlim.godot-tools
, is quite handy for editing GDScripts. My VSC settings are available here, in case you are interested. I use Fira Code
as the font and tweak the default Visual Studio Dark
theme.
I spent two weeks to read through twice the getting started part of Godot docs. Your time may vary but you definitely need to be familiar with the basics of the engine and GDScript before continue to the next chapter.