Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / DarkGDK Map Loader

Author
Message
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 11th Mar 2009 11:39 Edited at: 12th Mar 2009 08:23
I am making a map loader that reads what is in the file given to it and puts it into the screen with darkgdk heres the file format(its only the current version, it will probably change in the futuer):



this code would be turned into:


you get the picture.

file extension: .lvl

the pos:
x = the x pos on the screen
y = the y pos on the screen

the size:
cube:
x = the x size
y = the y size
circle:
r = radius

i dont know how to get it to read structured files like this, can anyone suggest any tutorials or paste some code and explain it?
i already know about iostreams and stuff like that but i have no idea about reading structured files. thanks in advance!

Login to post a reply

Server time is: 2024-11-25 17:47:57
Your offset time is: 2024-11-25 17:47:57