Roguelike AoC – part 17

In the seventeenth lesson of a roguelike game tutorial a random room generation was introduced. Well, maybe not that random, but still better solution than the one we had before. Gimme some room (again)! The code is rather straight – I did not have to…

Read more

Roguelike AoC – part 16

In the sixteenth lesson of a roguelike game tutorial a new element of the screen showed up – the HUB.   Ehm, so what do I do? To be completely honest there was not much to actually do in this lesson. I’ve just followed it,…

Read more

Roguelike AoC – part 15

In the fifteenth lesson of a roguelike game tutorial things get more exiting – we fight! Small changes required As usual with adding new file (in this case – combat.c) besides creating a new file please remember to add it to the CMakeLists.txt file in…

Read more

Roguelike AoC – part 14

In the fourteenth lesson of a roguelike game tutorial a next type of monster move is added – the random one. Like a staggering drunk To be honest there was not much to be done in this lesson – an algorithm presented by the author…

Read more

Roguelike AoC – part 13

In the thirteenth lesson of a roguelike game tutorial existing monsters are beginning to move. Been there, done that It’s nice to see that my anticipations from a couple of lessons ago came to life. Suddenly the Position in the Player and Monster structs became…

Read more

Roguelike Aoc – part 12

In the twelfth lesson of roguelike game tutorial introduces monsters to the mix. Structure changes and functions definitions The author introduces Monster struct, which has sense. However, I had to sync it with my code – therefore making small amendment. Instead of separate Position and…

Read more

Roguelike AoC – part 11

An eleventh lesson of roguelike game tutorial creates an additional layer that represents the whole level. I was thinking about such solution a couple of entries ago. Below I describe how I’ve developed this concept using my existing code. So what are we actually saving?…

Read more

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

Back to top