Skip to content

Text-based exploration game with procedural generation and polymorphism written in C++

License

Notifications You must be signed in to change notification settings

ahngo/exploreGame

Repository files navigation

exploreGame

Map-based game using pointers, classes and polymorphism written in C++. Randomly generates map tiles, map names and events that require player input in the form of a letter.

Sample text from game, note that the game requests a prompt whenever the console prints "Your choice: ".

Starting the game.. HP: 100 Atk: 25 Def: 10 Time: 50 Zone: Serene Grove

You sense something unique about this area.. [E]xplore?

You can move: [U]p [D]own [L]eft [R]ight

Your choice: D

You enter the zone, freshly fallen snow crunching beneath your feet.

HP: 100 Atk: 25 Def: 10 Time: 49 Zone: Frozen Expanse

You sense something unique about this area.. [E]xplore?

You can move: [U]p [L]eft [R]ight

Your choice: E

The temple, although formed from ice, is rather comfortable inside. You take refuge and rest well (+20 HP)

HP: 100 Atk: 25 Def: 10 Time: 47 Zone: Eternal Tundra

You can move: [U]p [L]eft [R]ight

Your choice:

About

Text-based exploration game with procedural generation and polymorphism written in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published