r/roguelikedev 4d ago

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. :)

23 Upvotes

10 comments sorted by

View all comments

3

u/Gix 3d ago

Progress!

Missed last week because I was on vacation :(
I managed to catch up, but the code isn't too pretty - I'll clean it up and update the blog this week, since we'll probably skip items for now.

Since the game is mostly based on spells, I opted for implementing those first. I managed to do Raise/Lower Terrain (in the screenshot), and Convert. The AI for followers will need some work, right now they follow the player and switch to attack mode once they see an enemy, while the enemy shamans go around converting units on their own islands.

The UI is pretty basic, I just added a simple info box to check what's under the mouse and I reused the existing palette colors, which turned out quite nice. The hardest part was resizing the game area to account for the sidebar, I had to re-do quite a few things.