Skip to content

Sean20405/Dungeon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dungeon

A C++ based dungeon adventure game

Introduction  •  Play  •  Compile & Run  •  Features  •  Acknowledgments  •  Supplements

Demo

This is the midterm project for course Data Structures and Object-oriented Programming in NYCU. More course info:

  • Lecturer:詹力韋
  • Semester:111-2, 2023 Spring
  • Syllabus

Introduction

Dungeon is a C++ based dungeon adventure game where players can explore dungeons, fight monsters, and collect items. It leverages the advantages of OOP, such as polymorphism and encapsulation, to implement complex game logic. It features systems for character occupations, battle mechanics, and saving/reading files. Additionally, it incorporates error handling and input validation to process various input cases, including uppercase, lowercase, and invalid inputs.

Play

You can directly click one file (corresponding to your system) and start play

Windows Ubuntu
main_windows.exe main_linux

Compile & Run

Please clone this repository and run the following commands:

git clone https://github.com/Sean20405/Dungeon.git  # Clone the repo
cd Dungeon/src
g++ *.cpp -o main.exe                               # Compile, link and output
./main.exe                                          # Run the file

Alternatively, if you have make installed, you can run make directly to get the executable file.

Features

  • Map Creation: The game includes a map with various rooms.
  • Player Creation: Players can choose their name and occupation (Warrior, Magician, Archer).
  • Weapon equipment: Players can find and equip different weapons, each with unique attributes and effects on gameplay.
  • Skill and CD system: Players have different skill and ultimate, but both have cooldown time.
  • Game Logic: The game includes logic for handling player movements, interactions, and game state checks.
  • Save/Load: Players can save and load their game progress.

Acknowledgments

Thanks to @nlohmann for providing such useful JSON tools for C++. nlohmann/json

Supplements

  • report.pdf: A comprehensive overview of the game, covering game logic, implementation details, and reflections on the development process. (Written in Chinese)
  • Demo Video
  • map
    map
  • UML
    UML

About

A C++ based dungeon adventure game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages