Archived

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

Scorpion

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

Recommended Posts

Scorpion    137
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
Profus    122
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