C++ implemented code 2
Haunted House » Devlog
Hello,
In this blog I will discuss what has been implemented. at the current stage of the game I have setup an inventory and items are being stored within certain rooms on the map. I have also made a destructor to stop any possible memory leaks, there is a string that reads in the items an renders them on screen.
The items are stored within the item class, and these items are listed 1-18 on which is which from the constant header, but the number is set in the array where the item number is called or there is a -1 because there is no item within that room. This is similar to the way the room works but there is no need for a 2D array.
Thank you for reading.
Get Haunted House
Haunted House
Text adventure through a Haunted House
Status | Released |
Author | Heccy |
Genre | Adventure |
Tags | Text based |
More posts
- PostmortemApr 10, 2019
- C++ implemented code 1Apr 10, 2019
- The TaskApr 10, 2019
Leave a comment
Log in with itch.io to leave a comment.