Tronic, I kind of understand what you're saying. To answer your first questions, I am VERY new at programming, and I barely know what i'm doing as far as just the C language, let alone programming games. But I just thought it'd be a little challenge to make a text based ONLY game that is, yes, only 2D, and only keeps track of the player's position (for now). The XYZ thing was billboebaggin's idea... but yea it's supposed to be a text based adventure, think like just... text. "you are in room one. what do you want to do?"
and commands are just north, south, east, or west.
then it's like "you can't go that way" or "you are in room 2" or whatever. I will expand from there. But I can't even get that far. So you think using an array is bad? I haven't learned about structs yet, but I just started the chapter in my book that explains them. Thanks everyone, maybe you FINALLY understand what i'm trying to do... maybe not... NO GRAPHICS :D
I would suggest taking the time and pseudo coding the flow of your game. Don't take too much time trying to figure out a method, pick one that you feel is best, then roll with it. If it sucks you can always change it out (just try to keep it organized otherwise changing it out will be a pain). Failure is the best teacher.
I have no intention of discounting your idea because from what posts of yours I have read you seem to be far beyond me. However, simply checking if the room is there is lacking, you need to determine if it is accessible ie. behind a door/wall.
Yea, I just finished my chapter on "structs and other data forms" so I'm one step closer to understanding... But I guess i'll just take some time away from this game thing for a while until I finish my book or at least write some psuedo code that I can break up into tasks (haha, i just instinctively put a ; right after the word break, what the heck?) maybe i need a break; from c all together (i did it again! seriously!) EH! :D
here is my work i started when this thread opened.
its a bit messy though.
just rename to .c
Whoa, I understand it all! Sloppy? You should see my code... or not... Maybe now that i understand structuers and stuff. well i stayed up all night last night reading my C book and have read it all day today. i'm goin crazy like i'm crammin for a test or something even though i'm just learning on my own. and it's all making sense. maybe that's a good thing :) hey everyone thanks for all the help, i think i can handle this game thing from here, at least the mapping and basic game setup, for now. i appreciate it!
Hey man, whatever you need :) Good to see people learn stuff :D Makes you get that like..good feelin inside ya know? But anyways..yea good luck with your coding :) It's a blast.