C++ Implementation


Entry #2

Implementation of C++ code

-Write your own Adventure Programs-

After writing up the code in BASIC I went onto converting it into C++ on CLion.

[Inside MyGame.h] 

I began by adding Game States, these were a Menu, Play, Win and Lose state.


I added bools for the Events that are scattered around the Haunted House and voids for the rooms I want the bools to be active in.



[Inside Constants.h]

I added the rooms via an array and named them as such.

I then added the Directions for the rooms, enabling or disabling North, East, South and West Movements.





Leave a comment

Log in with itch.io to leave a comment.