So i've recently started on a college course for games development, for my programming unit which has so far focused on Event drive programming using c# (about 2 months in now) i have to create a text based adventure game, something along the lines of a zork type game. My initial attempts were using a if statements to manage where the character goes e.g. "If (txtIn.Text = "left")
lblOut.Text = "You have gone left.......Insert next part...;"
My tutor semi hinted at a better way to do this having the information on a different file or page with the locations and the items at those locations which i've narrowed down to either being a class page or XML file. Had a friend briefly explain how to store information on a class page and made a basic one for character information. I have no idea how to take information and use it from these pages in the game itself though which is the issue, google has been of little help in this case (allthough it did allow me to stumble upon this forurm =D). Can anyone point me in the right direction? Will keep looking and trying to figure it out myself regardless.