r/roguelikedev • • Jul 30 '24

RoguelikeDev Does The Complete Roguelike Tutorial - Week 4

Tutorial friends, this week we wrap up combat and start working on the user interface.

Part 6 - Doing (and taking) some damage

The last part of this tutorial set us up for combat, so now it’s time to actually implement it.

Part 7 - Creating the Interface

Our game is looking more and more playable by the chapter, but before we move forward with the gameplay, we ought to take a moment to focus on how the project looks.

Of course, we also have FAQ Friday posts that relate to this week's material.

Feel free to work out any problems, brainstorm ideas, share progress and and as usual enjoy tangential chatting. :)

29 Upvotes

40 comments sorted by

View all comments

4

u/DerHeiligste Jul 31 '24

Hard Times | Python-3/libtcod | GitHub

I'm working my way through the Py3 tutorial and I'm having a lot of fun. So far I've added two things beyond what the tutorial covers.

First, I made it so that for each level deeper in the dungeon, the orcs and trolls are also one level more experienced. For each level, they have a 75% to get +1 power and a 25% to get +1 defense. As long as the player doesn't choose to increase defense too frequently, it keeps the combat somewhat interesting.

Second, I added a three-way distinction in the tile graphics, for torch-lit (radius 3) vs seen (radius 8) vs explored-but-unseen. It's kinda fun. I also add some yellow light to the entities when they're on a torch-lit tile.

I've started in on adding more traditional D&D-type attributes to the player (Str, Dex, ...) and applying those as modifiers to power and defense.

I'd like to work on map generation for a bit. I want to have an out-doorsy type area to explore with buildings that can be entered and explored. I'm looking around for some good woodsy village procgen.

4

u/HexDecimal libtcod maintainer | mastodon.gamedev.place/@HexDecimal Jul 31 '24

Your repo seems to be private or missing.

People have converted the tutorial dungeon generator for outdoor settings before. It's easy enough to start with a noisy tree map, use the rooms to clear floors and generate walls, then use the tunneling to ensure that clear paths between buildings exist.

3

u/DerHeiligste Jul 31 '24

Thanks! I got the repo public (didn't realize it was private by default).

Last night I put together a simplex-noise overland generator and added tree tiles that are walkable but not transparent. I love how easily that worked and how the "light_walls" option to the FOV means that I can see my immediate surroundings in the forest but not beyond that.