Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

yinkiu602/ENGG1340-Group-212

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realms and Might

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.

Game setting

  • 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

Authors

Features

  • Randomly generated initial stats
  • Random events in mid-game
  • Save and load game progress locally
  • 3 difficulty level
  • Dynamic width for battle system message.

Non standard library list

  • #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.

Code Requirment

  • 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

Installation environment

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

Save-loading

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"

About

Github repo for Group 212 project code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published