Roguelike AoC – part 10

A tenth lesson of roguelike game tutorial goes back to the topic of connecting doors. This time it’s the last lesson about the topic. The goal is to fix problems that appear on and on. Final cleanups with constants becoming macros and ncurses In the…

Read more

Roguelike AoC – part 9

A ninth lesson of roguelike game tutorial is different than the previous ones. It concentrates on dividing one source code file we’ve been working on so far, into smaller chunks. Make, CodeBlock, IDE and Windows So far I’ve been using CodeBlock (yes, I know, ugly,…

Read more

Roguelike AoC – part 8

An eight lesson of roguelike game tutorial also builds up on the previous one. Our door-connecting algorithm does not work as expected. So what can I actually do here? To answer the above question – nothing. Solution presented in this lesson I’ve just copied 1:1…

Read more

Roguelike AoC – part 7

A seventh lesson of roguelike game tutorial builds up on the previous one. We have created the doors, now it is time to connect them. Can (and should) I do better? The concept used in this lesson works not that bad. To make it a…

Read more

Roguelike AoC – part 6

A sixth lesson of roguelike game tutorial added a nice feature – doors. Position is not enough Due to the fact that I come from way more business-oriented world (Java, banking, pharma – You do the math) than usual C programmer, I couldn’t agree with…

Read more

Roguelike AoC – part 5

A fifth lesson of roguelike game tutorial was trivial and concentrated only on substituting X and Y position values with new struct named Position. The only logical changes were related to that. For the time being author did not go for all-in solution to use…

Read more

Roguelike AoC – part 4

A fourth lesson of roguelike game tutorial was longer than the previous ones. It was about creating struct for rooms – which can be never-ending story but here, it was settled on the quite simple solution. Before I start I have to admit, that sometimes…

Read more

Roguelike AoC – part 3

A third lesson of roguelike game tutorial is about adding bouncing off the walls. Of course, it won’t be final solution, but a first step towards it. From the very beginning of this lesson I’ve made changes to the resulting code. First of all –…

Read more

Roguelike AoC – part 2

Second lesson of roguelike game tutorial is about handling user input and moving around player character. Let’s go. Last time we’ve stopped with first draft of the game loop. In this lesson there was a method added that put in the loop is awaiting any…

Read more

Back to top