Text Adventure
hi is anyone doing gametutorials.com text adventure tutorials? How are you doing the inventory system and saving?
thanks
I''m making a text RPG too. I added some features like random NPC''s movement and others. Well, my inventory system is made with an int array inside a player class. Each element of the array contains a certain number wich corresponds to an object''s id. The number 0 means nothing in that place of inventory, any other number means one of the objects.
I use different files to keep the player, object, NPC''s and the area info, so when I call the save function, I make it put all the data that is contained in the classes for each element (player, objects, etc) in a different file.
I use different files to keep the player, object, NPC''s and the area info, so when I call the save function, I make it put all the data that is contained in the classes for each element (player, objects, etc) in a different file.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement