C++ implemented code 2


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

Leave a comment

Log in with itch.io to leave a comment.