A RPG text-based console game that involve player customization, gambling, and pve system. Player can try out their luck and skills by fighting the ultimate boss.
- 30 in-game days for player to buy equipments/ level up/ train stats
- Player have to fight a strong boss after the 30 days.
- Each activities costs stamina. When stamina is used up, the game will proceed to the next day.
- Event will happen randomly that may help or negatively impact in-game progress
- Ranomly generated inital stats to add uniqueness.
- 3 difficulty level with different initial stats.
- Casino for players to test their luck
- Randomly generated initial stats
- Random events in mid-game
- Save and load game progress locally
- 3 difficulty level
- Dynamic width for battle system message.
- #include <sys/ioctl.h> --> Used in battle_system.cpp to get the windows size to allow message width be dynamicly change depends on console width.
- Generation of random game sets or events --> Use of rand() to generate initial stats and events. (Feature 1&2)
- Data structures for storing game status --> Use of class/ struct to create and store user stats. (Feature 1&4)
- Dynamic memory management --> Use of vector to dynamically allocate memory.
- File input/output (e.g., for loading/saving game status) --> Use of fileio to save and reload game progress. (Feature 3&4)
- Program codes in multiple files
- Proper indentation and naming styles
- In-code documentation
Compile the program with any C++ compiler (Parts of the code need to be changed when not compiling in linux) (g++ in linux)
make clean; make main
Game progress will be saved in current working directory. No need to type the extension when loading / saving. Sample save file provided with name "testsave"