how to create/use a simple map in a game
I know this is very original so don't steal my idea... I'm trying to make a text based dungeon adventure game, my very first, but I was just having trouble trying to figure out a mapping system that the program can keep track of to display my coordinates and stuff. I have a very limited knowledge of C right now, I know as much as working with files, i know how to properly use multidimensional arrays, looping statements and that stuff, i just don't know a good way to keep track of my coordinates... i'd even appreciate a link to somewhere else that might explain a little bit, i don't mind having to think :) by the way i was thinking of trying a 2 dimensional array but then i was unsure of how to keep track of where i was in that array... what tells me where i am in that array? change one of the values in the array different from all the rest? have another variable pointing to a coordinate in the array? thanks