2D Tile Map Editor

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
timmymorris91
Posts: 19
Joined: Tue Mar 18, 2008 9:43 pm
Location: Wagga Wagga, Australia

2D Tile Map Editor

Post by timmymorris91 »

Im developing a 32*32 tile based game similar to Pokemon,
and I have made a map editor that uses an array of tiles[50][50]
with 5 layers [5].

What is the best way to save a map. Should I save screen
shots of each layer or save all the tile data in a text file
(which I dont know how to read properly).
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

Yeah just save the tile data to a file because there is no need to save screenshots of the tiles unless you are going to use some ingenious process to produce tiles from those.

But what do you mean by "which I don't know how to read properly"? Are you saying that you don't know how to read from a file/write to a file?
TheQuestion = 2B || !2B
Mag-got
Posts: 42
Joined: Tue Dec 04, 2007 5:53 pm

Post by Mag-got »

You can use IrrXML to write and read files.

http://ambiera.com/irrxml/index.html

Well, you can't write them with it though.
You can use the fstream.h to read and write normal txt files
http://www.cplusplus.com/doc/tutorial/files.html
Post Reply