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

Started by
1 comment, last by Scorpion 22 years, 5 months ago
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?)
Advertisement
Text format always seemed like the most convenient to me.

Looking for a serious game project?
www.xgameproject.com
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."
------------------------------------------------------------"To a computer, chaos is just another kind of order."

This topic is closed to new replies.

Advertisement