You move north into uh.... the same room

This is a discussion on You move north into uh.... the same room within the Game Programming forums, part of the General Programming Boards category; Okay, I want to create different rooms for BotK Full Version. And i don't want to use if (y == ...

  1. #1
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373

    You move north into uh.... the same room

    Okay, I want to create different rooms for BotK Full Version. And i don't want to use if (y == 3 && x = -2 && z == 1) for every room, becuase i would need to do 2 floors of 6x6 grids. Any suggestions?
    This war, like the next war, is a war to end war.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Maybe I don't fully understand the problem but why can't you store the player's position and just use that to look-up into the array?

  3. #3
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    grid[6][6][2] TADA 2 FLOORS YAY
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  4. #4
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Well, i have people saying they want to see what is around the player. But the problem with that is, there's like 2 rooms, one on each floor. A 2 floor fort. As my later version (with some music) has a story, you'll see that the fort is called Fort of Hatred. Its a ruin, animal sounds, evil awaiting, blah blah blah, yak yak yak, yayaya.

    So, if i can like, make a struct of the rooms, and have a message that say 'into a zombie' 'into zombie crap' etc, that would make life easier. Im a newbie and still suck at arrays for some reason.
    This war, like the next war, is a war to end war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lost, need help again~
    By NoobieGecko in forum C Programming
    Replies: 27
    Last Post: 07-09-2009, 06:07 PM
  2. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  3. MUD Concept Question
    By mrpickle in forum Game Programming
    Replies: 3
    Last Post: 12-01-2003, 12:45 PM
  4. Pathfinding AI? (Not the A* Algorithim)
    By harryP in forum C++ Programming
    Replies: 22
    Last Post: 08-01-2003, 03:32 PM
  5. Formatting Output
    By Aakash Datt in forum C++ Programming
    Replies: 2
    Last Post: 05-16-2003, 09:20 PM

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