This is an optional project of the course Advanced Programming. The goal of this project is to implement a text based RPG adventure game.
-
Set up Git
- git clone <url>
- (Work on the project & compile with cmake/make, see below)
- git status
- git add .
- git commit -m "comment"
- git push
-
Set up CMake
-
Create CMakeLists.txt (inside source folder)
-
mkdir build & cd build (binary folder)
-
cmake .. -G "MinGW Makefiles" (generate makefile)
-
make (compile into binary file .exe)
-
Problem encountered: https://stackoverflow.com/questions/4101456/running-cmake-on-windows
-
-
Create Main Menu
- Start new game
- Load previous game
- Exit
-
Main Game Loop
- Step-by-step operations: fight /show status/ rest / save / exit
-
Engine Class
- Create player
- Upgrade player
- Save/load
-
Player Class
- Player status
- Fight
-
Trainee/Fighter/Mage Class
- Trainee inherits from Player
- Trainee can be upgraded into Fighter or Mage (depends on user choice)
(To be continued...)