How I would load in a level

This is a discussion on How I would load in a level within the Game Programming forums, part of the General Programming Boards category; Anyone know of any tutorials that give techniques of doing this? TIA...

  1. #1
    Registered User jimboob's Avatar
    Join Date
    Jun 2004

    How I would load in a level

    Anyone know of any tutorials that give techniques of doing this?

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    here's one example. it all depends on how you want to store the level data

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    That's a very broad question.

    For instance in my voxel system here is my load sequence:

    Terrain world map(s)
    Terrain map(s)
    Dither maps(s)
    Detail Texture(s)
    Color Map(s)
    ---------------------------> all of above have been completed
    3D Object Info
    3D Objects

    Sprites, sounds, and menu graphics are loaded on startup of need to load into level.

  4. #4
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    lol yes, it is a rather broad question...

    What do you plan to load in? What dimmension (2-d or 3-d)? How are you storing it etc?

    I would go with reading in from a text file, but I'm not sure of what you are asking.
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  5. #5
    Registered User jimboob's Avatar
    Join Date
    Jun 2004
    I wanted to load in from a text file and it would be 3d. I'm just trying to think of a way to store it but i could probably find the number of vertices, etc by using the for loop, i think... I'm not too clear about the way memory works...
    Thanks for the help everyone

  6. #6
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    University of Waterloo
    I'd suggest looking over at NeHe's tutorial #25
    That covers loading 3D models (albeit points) from text files. I believe modeling programs like MilkShape3D can also export to text files.
    yah, MilkShape can export to text files.

    However, by the sounds of it, I'd suggest before you try to jump in to 3D that you master a bit more of basic C/C++ or at least an API. Without an api you're going to have a tough time displaying the 3d level (if that's your goal).

    If you need any help on file loading, there's tons of stuff in the faq here at cprogramming
    and you can also do board searches for file reading stuff.

    Good luck, hope that helped somewhat

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Listing binary tree numbers by level
    By Nazgulled in forum C Programming
    Replies: 5
    Last Post: 06-16-2008, 10:36 AM
  2. File send app - md5 checksum different when load is put on server.
    By (Slith++) in forum Networking/Device Communication
    Replies: 5
    Last Post: 12-31-2007, 12:23 PM
  3. Just finished assembly assignment
    By xddxogm3 in forum Tech Board
    Replies: 6
    Last Post: 10-08-2005, 04:01 PM
  4. Level Editor
    By jdinger in forum Game Programming
    Replies: 14
    Last Post: 04-03-2003, 05:46 PM
  5. level up 6 times with 40 EXP!?!?!?!
    By Blizzarddog in forum Game Programming
    Replies: 15
    Last Post: 03-05-2003, 11:56 AM

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