Map Editors

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
dejai
Chaos Rift Junior
Chaos Rift Junior
Posts: 207
Joined: Fri Apr 11, 2008 8:44 pm

Map Editors

Post by dejai »

So following up on my previous post. I found some good information on 2D game engines, not an RPG engine but its a start:http://gpwiki.org/index.php/SDL:Tutoria ... e_Overview
Now I was wondering where I could find information on making a map editor that was able to save files which can then be read by the engine. Thanks :D (P.S) I am not making an RPG I am just learning about game design.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: Map Editors

Post by MarauderIIC »

Well, the save/load thing is basic file input/output. The making an editor part would be hard. Hopefully Marcel has some references for you and hopefully he finds time to get on the forum again ;)
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Map Editors

Post by Falco Girgis »

I believe that LusikkaMage has some sort of tutorial or something on the subject somewhere. She also has boobs.
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Map Editors

Post by avansc »

mmm.. i usually make a base game engine, then make two divverent versions. one thats the game, and one that just hase functions that you can use to place objects in the world space.

i usually have one big class that something like level, or world or something to that nature. then once i have populated that class with my editor, i write that entire class to a binary file. then use the game to load that file. it works fine, its fast. and alot more compact that doing xml or something like that.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Map Editors

Post by avansc »

^, note then you also dont have to include the texture files or anything like that.
so you would save everything into a file like lvl01.lvl and it will be like 2675KB

but have all your textures, sound, map data, everything you need for that specific map. and its really easy to load the bin file into a object again.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Post Reply