C++ Implementation
Haunted House Dev Diary » Devlog
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.
Haunted House Dev Diary
Status | Released |
Author | Connor Davey |
Genre | Adventure |
More posts
- PostmortemApr 09, 2019
- C++ Implementation ContinuedApr 09, 2019
- For Starters..Apr 09, 2019
Leave a comment
Log in with itch.io to leave a comment.