r/roguelikedev • u/KelseyFrog • Aug 05 '26
RoguelikeDev Does The Complete Roguelike Tutorial - Week 1
Welcome to the first week of RoguelikeDev Does the Complete Roguelike Tutorial. This week is all about setting up a development environment and getting a character moving on the screen.
Get your development environment and editor setup and working.
Part 1 - Drawing the ‘@’ symbol and moving it around
The next step is drawing an @ and using the keyboard to move it.
Of course, we also have FAQ Friday posts that relate to this week's material
# 3: The Game Loop(revisited)
4: World Architecture (revisited)
# 22: Map Generation (revisited)
# 23: Map Design (revisited)
# 53: Seeds
# 54: Map Prefabs
# 71: Movement
Feel free to work out any problems, brainstorm ideas, share progress, and as usual enjoy tangential chatting. :)
17
u/Kyzrati Cogmind | mastodon.gamedev.place/@Kyzrati Aug 05 '26
Welcome, everyone, and good luck! The initial announcement has the introductory info if you missed it.
Supplementary info:
Regardless of when you join--early this week, later in the week, or even in the coming weeks, you will be added if you post in the threads with updates and information.
12
u/level27geek level0gamedev Aug 05 '26 edited Aug 10 '26
I attempted the first event in 2017, but I didn't finish for a reason that I can't even remember now. This year I plan to scale down the scope and build something I can expand on later on. I'm hoping that having a plan for how to expand it will keep me motivated to keep going.
I'll be using usagi engine (I recently learned about it, and want to explore it) and the broughlike tutorial (because I really like the simple/obvious rules and making every move matter).
I want to make something between a traditional roguelike and a broughlike with a focus on tactics and discovery. The basic game loop is going on short "dungeon" runs and collecting items that work as spells (as per broughlike tutorial). Any items that you haven't used when you return (backtrack) give you "xp" to upgrade your character in some way.
I'm hoping that the fun will come from discovering enemy behaviors, what each item does, and pushing your luck (you can choose when to backtrack) on top of the usual tactics.
I put "dungeons" and "xp" in brackets because I'm considering moving away from standard fantasy. I'm thinking of using liminal horror (backrooms, etc.) or cozy forest / fable theme instead. The first one would have you play a corporate employee tasked with retrieval of anomalous objects, the other a lackey of a witch tasked with collecting spell ingredients. Currently I'm leaning more towards the former.
So far I've only setup usagi on my machine. I'm keeping myself away from making any pixel art for the first few weeks, as I'm not 100% decided on the theme, and being more of an artist than a programmer, I would probably just spend most time making graphics.
Edit: I got a repo up on codeberg.
Most of the week was spent setting up my gamedev environment, especially getting hang of git without the help of the github gui I used in the past. I'm still getting used to usagi, and I'm jumping between broughlike, picotron and the Python 3 tutorials (I want to hit the same beats as the rest of the participants each week and to do that I want to see what the main tutorial does, and have a little peek how it was done in lua), so it's a bit confusing right now, but I hope it will get easier as I get more familiar with usagi :)
11
u/kyaaam Aug 05 '26
Completed Part 0 & Part 1 (repo).
I've shipped small games before (mostly for jams) but this is my first roguelike! I decided to go with Fennel + Love2D + rotLove for this one, planning to follow along with the tutorial by hand-rolling game logic and using rotLove's rendering and algos. Looking forward, I have a core gameplay feature in mind, but will save that for a future post along with a proper GDD. Looking forward to seeing what everyone's making!
9
u/_benj Aug 05 '26
I've been looking the whole day for this post! 😅 Excited to be part of this :-)
9
u/Kurald Aug 06 '26
I started my on path. I'm a professional software developer (in C++, not games) and wanted to gain experience about Rust and ECS/bevy. I started following the tutorial but derailed. Nevertheless, I wrote everything down so far.
So - if you want a totally overexplained tutorial in Rust and Bevy with the goal of clean, understandable code where almost every line of code is explained - feel free to follow along: https://iso8859-1.github.io/roguelike/rust/tutorial/bevy/2026/07/28/rust-roguelike-overexplained-getting-started.html
Current status: an @ sign moving around with a border of walls as maps - but no collision yet. That will come next (probably at the weekend).
Feedback is welcome. Either via github or here.
(the professional software developer doesn't mean I'm particularly good at Rust or writing games. It just means that I have opinions how "good, maintainable software" looks like - and these are also not always correct, especially in an area where I usually don't write software, aka games or Rust)
8
u/Seeveen Aug 05 '26 edited Aug 05 '26
Repo
I started working on a roguelike last week, so I'm going to tag along in the hope that it gives me enough structure to get some momentum going.
I'm building a terminal-only RL in Rust, with ratatui/crossterm for rendering. The scope is probably too big, but the concept is a survival/sim inspired by C:DDA and UnReal World, in a space setting. The whole thing is a canvas for me to explore psychological/body horror, liminal spaces, and cosmic doom.
I'm curious to see how scary procedural ASCII can be.
I'm a little further along than step 0/1, I already have a moving @ and wall collision in a square room, but I'm probably going to lag behind soon.
7
u/Purpose2 Aug 05 '26
Time to give this a proper shake this year. I'm planning to use Godot, so I'll be lacking a lot of the nice stuff from libtcod, but theoretically I have a good bit of free time this year.... and I'll not fail around part 4 this time... positive affirmations... :)
7
u/morewordsfaster Aug 05 '26
I'm having a blast. Been getting frustrated with game dev on another project and decided to switch gears and build a simple(-ish) roguelike along with the subreddit this time around and it's been such a breath of fresh air.
Giving python-tcos-ecs a run as well, so having to translate/refactor some of the stuff from the rogueliketutorials.com v2 edition, but that's half the fun.
I always struggle with scope on my projects and my eyes get bigger than my stomach, as it were. Sticking to essentially the scope of the tutorial has been a great exercise in restraint and focus. Can't wait to show off in a few weeks!
6
u/LukeMootoo Aug 05 '26
Okay, I'm in.
In 2022, I started this code-along and I got through the first half before something made me stop. I don't remember what; I think I had a combination of problems, such as biting off more than I could chew in terms of writing my own rendering and map generation instead of using library functions. I also had a somewhat precarious living situation at that time, and that was probably competing for my attention.
In 2024 I started the 7DRL but stopped only a couple of days in to prioritize some other things. In 2025 it looks like I started setting up an IDE for this tutorial but didn't get past the initial commit, I think I probably had some 2FA issues or something dumb.
But I'm here now! Back at it! This will be native JS, with no libraries. Just as before.
Why? Because it is easy to rapid prototype in, I don't need a compiler, I don't actually know any programming languages, and I find it very hard to learn anything by using a library when I don't know how the library works.
Here we go: https://github.com/mootootwo/2026rltutorial
Development notes and demos on gitpages: https://mootootwo.github.io/2026rltutorial/
Part-0: https://mootootwo.github.io/2026rltutorial/part-0/devblog
6
u/hyppocratees Aug 05 '26
I tried following the event last year but was very irregular and didn't manage to go to the end so I'm trying again this year. This year I hope to produce a cleaner, more robust code.
Like last year I will be following in C++ with libtcod and SDL3 for the event.
Here is part 0-1 Repo
6
u/Nokiraton Aug 06 '26
Completed Parts 0 & 1 (and 2) using C++20 and SDL2 (with SDL2_ttf to generate glyph atlases automatically). There's a non-zero chance I'm going to get carried away and want to move forward a bit so I can spend more time on specific features, but we'll see.
Leaning towards a turn-based urban tactical roguelike inspired by cover shooters in the style of a classic ASCII roguelike: sightlines, flanking, limited ammo, enemy roles, mission objectives, urban routes through streets, interiors, alleys, and rooftops. I.e. Turn-based ASCII The Division.
5
u/Gix Aug 05 '26
This year I'm building something I've been thinking about for a while: a Populous-inspired roguelike. Instead of fighting enemies you convert villagers and have them fight other tribes, while casting terrain-warping spells (for now) to move across islands.
I've already completed the tutorial in 2021, so I'll hopefully have time to implement the new features, based on what I already have! I'll follow the general structure, but the prototype will be based on SDL3 and EnTT. Let's go!
Here's week 1
I'll also try and keep a devlog / brain dump updated (it's my first time publishing something online, I don't know about the quality 😅️)
5
u/_benj Aug 06 '26
Alright, first week done! Here is the repo.
I'm planning to do a devlog on my blog but haven't gotten to it yet...
I kinda like C++ and I'm ding this in "modern" C++23, let's see how it all goes!
5
u/mariobadr Aug 06 '26
Finally have time to follow along this year. I'm an experienced developer, just having some fun. Here's the repo and itch.io. Using C and SDL3. Need to load an actual font at some point, but for now I'm using SDL's debug text.
5
u/haveric Aug 06 '26 edited Aug 18 '26
I've completed a couple of these in the past, but the last two times I've gotten busy around week 4, so my plan this year is to go back to those projects, fix some known bugs, and flesh out features in the early weeks, while planning out how to get both of them across the finish line by the end.
For this week, I've gotten both projects updated and working on a new machine. I've also updated some dependencies and the readmes to provide a little more information, including links to the playable demos.
The projects are:
Hexes in Javascript: Github - Past Week 3 Demo
Hexagons are the bestagons, but I ran into some issues with cave generation that will need fixing, along with the map sometimes generating the starting position off the screen (at least on a 1080p monitor). I don't have any specific plans for this project, so I'll probably play around with some extra generation options next week (rooms inside caves, terrain features, etc.), but if anyone wants to throw something wild at me for ideas, I'll see what I can do. Otherwise, this one might stick close to the tutorial for now.
Neil the Seal in Godot 4: Github - Past Week 3 Demo
Neil the Seal is back and needs his chaos to be fulfilled. I have some town generation ideas that I had planned to experiment with from last time (larger buildings mostly, but maybe playing with different generation options) and lots of new ideas to help flesh this one out, but may still struggle adapting some of the traditional roguelike elements over. I'm confident that I can figure out enough things to make it work though and excited to experiment more with Godot.
Note for the organizers: Since I'm continuing old projects, I'm fine with these being updated on the old year's lists instead of being added to this year's, but I'll leave that up to you (assuming I make it far enough this time for there to be relevant updates)
5
u/IndieAidan Aug 06 '26
I keep trying to make roguelikes and I've tried this tutorial-along before, but I might try this again in Godot to make a basic roguelikes from scratch. Let's see!
5
u/Selestielle Aug 10 '26
Hi all! This is my first time participating in this event or anything like it.
A little about me: I'm a professional game programmer, currently working for a medium-size studio on a game using Unreal Engine 5. However, I've barely touched Python in my career and despite my interest in the genre, I've only ever dabbled in developing roguelike mechanics before - so I'm quite keen to build something more complete and playable as part of this event!
At the moment I'm planning to follow the tutorial fairly closely, although I have already pushed a little further by fixing a number of warnings and adding high DPI support.
Here is my repo, including a devlog where you can read about my progress if you wish!
4
u/AsexualSuccubus Aug 05 '26
I'm curious what people's thoughts are on appropriate viewport sizes for the primary content (board/world/map?). The tutorial itself uses 80x50 cells (at least in part 1) but this looks far too long with the font i'm using and not being able to have the player's symbol centred is unfortunate.
4
u/FutaAppreciator Aug 05 '26
I finally have some free time, so maybe I'll be able to finish something this year. I'm planning to use C# with SadConsole and GoRogue. Although I think their APIs are a bit too convoluted, I didn't find anything better for .NET.
4
u/Watashi_Lannael Aug 05 '26
I'm only just learning Python, and something I'm trying to figure out is a way to rework the K_ESCAPE conditional to check if the key is held for a number of frames/seconds before calling the escape action so that closing the window isn't so instant/accidental. I don't know if libtcod has any inbuilt function to return a value for how long a key is held. Hmmm
4
u/Admirable-Evening128 Aug 05 '26
I will try to follow along, because I invariably get distracted during 7DRL,
so I am misusing RDDTCRT instead/for now.
At this stage, I did the 0+1 at https://xok.dk/other/2026rt/dist/index.html
- an @-sign moving with cursor keys or HJKL.
It uses typescript, parcel, ROT.JS.
The resolution is 32 x 24, like on the ZX81,
because those were superior dimensions.
At the moment, @ wraps around if he reaches a border.
Currently under 100 lines,
and most of those lines are DOM boilerplate to resize canvas / configure rot/display.
I am a pathological RL-starter, holding hundreds of corpses of roguelikes in various stages of completion in my inventory; a few of them are relatively complete
("reach depth 15 and/or kill dragon / recover amulet"), but harmless/unimpressive.
Still, not all people realize that building roguelikes is simply fun like LEGO.
4
u/norpproblem Aug 10 '26
Finished parts 0, 1, and 2 (repo here), using Raylib + C#, so basically doing the whole thing from scratch. This is mostly for the joy of programming rather than any specific technical reason.
Roughly following the tutorial for features to implement, but I've jumped the gun a bit already and implemented FOV. I've been implementing the command pattern for the game loop mirroring a setup I used before in Godot 4. Got the @ moving around and collision with walls as well as the aforementioned FOV stuff. Satisfying to work through so far!
Game idea at the moment is a wintry cold survival sim but pared down some. We'll see how it goes!
4
u/redblobgames tutorials Aug 21 '26
I've gone through the roguelike tutorial often enough that I want to do something different each time I participate in this event. I want to try new things and learn something from the experience.
One of the things I ran into was that implementing colonist jobs was tricky. A colonist might have a job, so if you're using objects you would make a field from the Colonist object pointing to the Job object. But a job involves an item, so the Job object might point to the Item. And the item needs to know who's working on it, so the Item points to the Colonist. And the item might also need to know which job is processing it so Item points to Job. And a job wants to know if/who is working on it, so Job points to Colonist.
People say don't use OOP, use ECS instead. But this doesn't quite fit into ECS either. Colonists and items are entities. But jobs aren't entities, or at least, I don't think of them that way. I think of ECS as a subset of what relational databases offer, so I switched to an in-memory database model, and wrote a blog post about it.
This year my plan is to:
That's a lot, and I don't think I'll get all of it done, but it'll be interesting and I think I will learn a lot.
3
u/-16ar- Aug 07 '26 edited Aug 08 '26
I just finished another rogue like tutorial in Go that I had to adapt in 3D as the 2D game engine didn't work in my env for a moment.
https://codeberg.org/dolanor/roublard
Anyway, I'll try this challenge if I can stick to it! In Go, as well, and I might use the the g3n 3D game engine as well, but maybe render in 3D tiles instead of full 3D models.
3
u/aberfloyd Aug 09 '26
I've tried going through the libtcod-python tutorial series in the past, but never made it very far. I'd like to give it another shot this year after a recent Caves of Qud play through has really inspired me to learn how games like these work. I'm going to give the McRogueFace engine a try. The author has provided an in-depth tutorial and it looks like a lot of fun to use! I've gone through parts 0 and 1 so far and am having a blast.
My repo is located here: repo
2
u/LukeMootoo Aug 09 '26
hey u/KelseyFrog and u/Kyzrati -- I was following the links to the old FAQ Friday posts about Game Loops, and found two of the three articles in the old FAQ posts have dead links, now.
This is a replacement link for deWiTTERS article: https://dewitters.com/dewitters-gameloop/
This is a wayback link for the kathekonta article: https://web.archive.org/web/20170528181116/http://www.kathekonta.com/rlguide/article1.html
I don't know if the FAQ Friday posts are editable after all these years, but hopefully these updated links help someone.
2
u/RhoTheGray Aug 10 '26
This popped onto my radar last Thursday or so and I tried my best to resist the urge to take part. But then there was a natural break in my other side project and now @ is on the screen and moving left and right.
I'm using Zig and no libs apart from clib. The game will be playable locally on terminal (works) and remotely over telnet (proof-of-concept works). I'll be following the TCOD 2020 tutorial and I anticipate most of the effort will go into covering what I'm missing from not using TCOD. I do not expect to be producing an interesting game, I'm happy if I persist to half-way.
Current status: TTY/Telnet with ANSI rendering, frame buffer based drawing, rudimentary event handling, @ drawn and can be moved.
2
u/casingproject Aug 12 '26
I’m in the midst of a coding bootcamp learning the basic web stacks. I was going to practice making pong in phaser but this sounds more fun. Is rot.js still a good tutorial? Are there any more recent js tutorials?
Sorry if this is the wrong place to ask!