Like Tree3Likes
  • 1 Post By anduril462
  • 2 Post By VirtualAce

Data structures used in games.

This is a discussion on Data structures used in games. within the Game Programming forums, part of the General Programming Boards category; What are the main data structures used in programming games and for what purpose is each one used?...

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    10

    Data structures used in games.

    What are the main data structures used in programming games and for what purpose is each one used?


  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,444
    This sounds an awful lot like a homework question, which our homework policy would prevent me from answering directly (though I don't think it is). Also, it's extremely Google-able, I did so and got tons of results. However, there is a third reason we can't really answer it: it is far to broad. What kind of games specifically: RTS, MMORPG, FPS, racing/vehicle simulations, arcade/adventure/scrolling, puzzles, etc, etc, etc? What aspect of the game: graphics engine, player/object modeling, AI, world/environment/maps/routes/route-finding, networking/multiplayer aspects, etc?

    Games are often quite complex and diverse, and there's no concrete list we can give of "if you know these data structures then you can write a game". Discussing even one of these topics in much detail would be quite an undertaking. If you are really interested in game programming, grab a few books and find some online tutorials. Read and try coding up some of the examples and simpler games to get your feet wet. That should give you an overview of the field, and when you have a more specific idea of what you're interested in, you can ask more specific questions, and we can probably give much better help.

    All that being said, I would pretty much bet that, at the very least, you would need to know your basics: FIFO, LIFO, linked lists, trees (binary and N-ary), heaps, etc. Many of the data structures you use will probably be based off of those, but be much more specialized for the needs of that one game or type of game. I'm sure there are people here with more game programming experience than me, who may have more to say.
    Salem likes this.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Simple answer. The same ones used in applications. The reason for using them is universal. Vague question = vague answer.
    Sebastiani and Salem like this.

  4. #4
    Registered User
    Join Date
    Sep 2012
    Posts
    10
    No it wasnt's a homework problem.. I was just interested. But you're right I should have googled it. Thanks anyway.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structures:
    By jocdrew21 in forum C Programming
    Replies: 15
    Last Post: 08-14-2013, 01:12 PM
  2. data structures
    By kiros88 in forum C Programming
    Replies: 8
    Last Post: 09-18-2009, 05:48 PM
  3. Replies: 2
    Last Post: 06-16-2005, 10:03 AM
  4. data structures
    By hawkins786 in forum C++ Programming
    Replies: 1
    Last Post: 05-12-2005, 03:42 PM
  5. Data Structures
    By sonicsite in forum C Programming
    Replies: 3
    Last Post: 02-28-2002, 08:56 PM

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