Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Scorpion

how to load/save levels, what format etc...

This topic is 6075 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to know more about levels. How can i load/save levels the best way? What format to use etc... (3D Levels that is) For example, a 2D Map file for a simple RPG game could look like this:
111111111111
100000000001
111111100001
100000000001
100000000001
100001111111
100000000001
111111111111
 
How could i do this with 3D levels? Is there any good tutorial around (which i haven''t found yet?)

Share this post


Link to post
Share on other sites
Advertisement
That depends on how the map-data is represented in your game. The easiest way to save a map should be to write your representation into a file. I know this doesn''t work for every game but it is a good point to start from: first have a look at the representation of your data and then try to find a way to copy it in a 1:1 manner into a file.

------------------------------------------------------------
"To a computer, chaos is just another kind of order."

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!