Coder Social home page Coder Social logo

kostasalex / rpg-game Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 442 KB

:video_game: RPG-game is a text-based role-playing game where players can control up to three unique heroes, each belonging to one of three classes (warrior, sorcerer, paladin) to battle against randomly spawning creatures.

C++ 99.31% Makefile 0.69%
c-plus-plus object-oriented-programming text-rpg-game

rpg-game's Introduction

RPG-game

A simple, object-oriented, grid-based text RPG where the player can create up to three heroes, chosen from three different classes (warrior, sorcerer, paladin) to battle against a group of randomly spawning creatures. As the heroes navigate the grid, they will encounter and fight these creatures, earning experience and gold to purchase better items.

Compiling and Running

  • Navigate to the "RPG-Game" folder in your local copy of the repository.

  • In the terminal, run the command "./make run". This will compile and run the program

  • To remove the executable and object files run "./make clean".

Game Demo

Load screen

||                             ||
||       /|________________    ||
|| O|===|* >________________>  ||
||       \|                    ||
=================================

Select a class :

1. Warrior     || A Warrior class has additional strength and agility
               || Strength : 15
               || Dexterity : 10
               || Agility : 15

2. Sorcerer    || A Sorcerer class has additional dexterity and agility
               || Strength : 10
               || Dexterity : 15
               || Agility : 15

3. Paladin     || A Paladin class has additional strength and dexterity
               || Strength : 15
               || Dexterity : 15
               || Agility : 10

Grid navigation

-----------------
|H  |   |   | ##|
-----------------
|   | ##| [M| ##|
-----------------
|   |   |   | ##|
-----------------
|   |   | ##| ##|
-----------------

Where do you want to go? [w] = up, [s] = down, [a] = left, [d] = right
Or 'b' to go back
Direction: 

Combat

===============================================================

                  ***    Round 1   ***

===================== Heroes turn =============================
///////////////////////////////////////////////////////////////

kostas [600/600]              ->Adalinda [397/500]
->alex [600/600]              Xiuhcoatl [500/500]

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

1. Attack
2. Cast Spell
3. Display stats

0. Go back

>1
alex attacks Adalinda..
Adalinda received 99 damage!

Press Enter to Continue

Rewards

===============================================================

             +++++ Combat Rewards +++++

===============================================================

kostas received 40 experience!
Experience: 0 --> 40
kostas Picked up 24 gold!!!
------------------------------------------
alex received 41 experience!
Experience: 0 --> 41
alex Picked up 27 gold!!!
------------------------------------------

Press Enter to Continue

rpg-game's People

Contributors

kostasalex avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.