how to create/use a simple map in a game

This is a discussion on how to create/use a simple map in a game within the Game Programming forums, part of the General Programming Boards category; Tronic, I kind of understand what you're saying. To answer your first questions, I am VERY new at programming, and ...

  1. #31
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198
    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

  2. #32
    Registered User BillBoeBaggins's Avatar
    Join Date
    Oct 2003
    Posts
    107
    linucksrox:
    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.

    Bubba:
    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.

    Safe Codin.
    May the compiler be with you.
    Be one with the compiler, and you shall prosper greatly.

  3. #33
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198
    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!

  4. #34
    Banned
    Join Date
    Dec 2003
    Posts
    367
    *cough* PM *cough*

  5. #35
    ---
    Join Date
    May 2004
    Posts
    1,379
    here is my work i started when this thread opened.
    its a bit messy though.

    just rename to .c

  6. #36
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198
    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!

  7. #37
    Registered User
    Join Date
    Mar 2004
    Posts
    220
    Hey man, whatever you need Good to see people learn stuff Makes you get that like..good feelin inside ya know? But anyways..yea good luck with your coding It's a blast.
    OS: Windows XP Pro CE
    IDE: VS .NET 2002
    Preferred Language: C++.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 04:18 PM
  2. Looking for coder: Simple C++ Client / Server game
    By kocho in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 02-04-2006, 02:34 PM
  3. Simple driving game
    By VirtualAce in forum Game Programming
    Replies: 6
    Last Post: 07-06-2004, 10:34 AM
  4. Map for a game
    By GhOsT_DeStRoYeR in forum Game Programming
    Replies: 3
    Last Post: 05-13-2003, 01:52 PM
  5. My Memory Game
    By jazy921 in forum C Programming
    Replies: 0
    Last Post: 05-05-2003, 06:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21