Rogue C# – Playthrough and Testing
I decided it was time for that playthrough of the game to see where things were. You can see the playthrough in my newest video where I also tackle a few of the other issues I found.
Technology should be the means, not the end.
As Nietzsche put it, if you have a why to live, you can bear almost any how. A meaningful life can be extremely satisfying even in the midst of hardship, whereas a meaningless life is a terrible ordeal no matter how comfortable it is.
Yuval Noah Harrari, Sapiens: A Brief History of Humankind
I decided it was time for that playthrough of the game to see where things were. You can see the playthrough in my newest video where I also tackle a few of the other issues I found.
I’m getting closer to the point where I can add a SQLite database to hold the game data but I needed to get some bugs and issues out of the way first. I also needed to clarify the player’s inventory limits so I addressed that this week.
After taking a bit of a break from the game project, I decided to add the rest of the inventory and add throwing and casting attacks. In the process, I got another quick lesson in object-oriented programming.
This week, I’m taking care of some general fixes and looking at ways to improve the codebase and keep things maintainable around the place. As a bonus, I discovered helper functions in C#.
In this post, I share a video from the Feral Historian that is strangely relevant to today’s A.I. landscape and review my own continually evolving use of the technologies.
Rings are actually one of my least used items in my playing of the classic Rogue. They tend to be risky as they increase food consumption and a cursed ring just won’t come off. Still, they’re part of the game and a great challenge for this project so I decided to add them to the inventory list.
Happily, the remaining traps to my roguelike game did not break anything new in the code; I was able to build on existing resources already in the classes. I also reorganized some code, clearing the deck for the addition of monster special attacks and upcoming inventory additions.
After adding all those potions in one shot, they still had to be tested and every single one exposed something that needed to be improved in the code. The sheer number of fixes would be too long for this post but I did come up with a few interesting examples.
Potions are much like scrolls but every new effect potentially requires supporting changes elsewhere, including new properties and changes to game play. In this chapter, I sample all the potions and see how many ways I can break the code.