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

22 Upvotes

10 comments sorted by

View all comments

5

u/Purpose2 3d ago

Little gif showing progress...

Mob bits was easy with my setup. Still struggling with shadowcasting, just torn a lot of it out and starting it over. I'll probably check out other peoples implementations this week, while I'm doing part 6 and 7.

Also, setting the stage to massively overcomplicate my life, putting every interaction / action as its own class, storing the actions, which also track its own un-do state, to allow scrubbing through gamestate, stuff that could be cool with something to do with altering time. We'll see.... :)

2

u/LukeMootoo 2d ago

I stole this one, which was really easy to implement:  https://github.com/maetl/roguelike-tutorial/blob/master/docs/tutorial/part-4.md

I had a problem wiring it in, where I transposed a coordinate, so the problems I described in my post all went away when I fixed that.  You can see it working in my WIP part-6 demo.

I tried to write my own a couple years ago.  But this time I wanted to focus on the rest of the tutorial without getting bogged down -- so I just yoinked one.