ASCII Roguelike

Raid’em
ASCII Roguelike in C++

This was a project in my Advanced Topics in Game Development class. The objective was to cover most of the basic topic in C++. Some of the required topics that had to be included were Encapsulation, Abstraction, Information Hiding, Inheritance, Polymorphism and Data Abstraction.

This is a basic C++ game, where the player (represented by ‘@’) is in a dungeon and has to raid it. There are two types of enemies present, a few pickups like weapons, gold and healing potion.

This slideshow requires JavaScript.

The game has a combat system, the player engages the enemy simply by running into them. If you don’t manage to kill the enemy in one hit, they do return damage. There is also a basic AI where the enemy randomly moves around and when you get close to them, they keep chasing you until you kill them.

This slideshow requires JavaScript.

The game reads the level using a text file. It also has a save and load feature, which also uses a text file, one to store player data and one to store map information. This was done by passing the text file data into a vector and then displaying on the screen.

The source code can be found here.