-
Moving My Character?
This is for a text-based game. I want a character to be able to move from room to room and then they will be able to see each room's description. I just keep reading and reading but I'm not getting stuff. I need some code to start out with. I learn better that way. :[
So this is what I'm going to start out with (I have everything above the { don't worry. Lol.)
Can you guys tell me how I would do this?
Code:
{
// I want my character to move from room to room.
cout<< "Where would you like to go?
// Directions are North, South, East, and West.
// Then if they want to go back to the same room they can and see the same description there.
// Small map. Just want to test it out.
return 0;
}