Page 1 of 1
Map Editors
Posted: Thu Dec 04, 2008 5:35 am
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.
Re: Map Editors
Posted: Thu Dec 04, 2008 10:10 am
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 ;)
Re: Map Editors
Posted: Thu Dec 04, 2008 10:14 am
by Falco Girgis
I believe that LusikkaMage has some sort of tutorial or something on the subject somewhere. She also has boobs.
Re: Map Editors
Posted: Thu Dec 04, 2008 10:18 am
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.
Re: Map Editors
Posted: Thu Dec 04, 2008 10:21 am
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.