Re: [Super-tux-devel] File format (again!)
Brought to you by:
wkendrick
From: Tobias <tob...@gm...> - 2004-02-26 21:27:35
|
Am Do, den 26.02.2004 schrieb ri...@ae... um 14:16: > Hey there, > > While implementing the button bar in the level editor, the following > problem appeard: that's something I'm working on. :) I'd like to prevent double work on a single TODO. ;) > Tiles are currently setuped in the code, instead of through a file. > This makes them hardly to be used in the level editor button bar and, > in the future, to implement stuff, just as the sliding. > A setup file for the tiles would need to have information, just as > number of tiles, filenames and the type of each tile (as specified in > the development page by Ingo). > > So, we should all agree with a file format for it, and that would, > maybe, be used also by the other files, just as the highscore, level > subset and the level themselves. > > Personally, I found XML to be a waste of space and a bit hard to > read. So, I would vote for an INI-like file format that are used by > windows and kde. I bet your health that it would be more than > enough ;) > > I have previously, mentioned this and even sended a function that > would get a value, by being feed with a file, group and entry. > Have a look at my suggestion for the look of the Tile's setup format: > > [TILES] > number=3 > > [TILE 0] > file=water.png > type=full > > [TILE 1] > file=cloud.png > type=empty > > [TILE 2] > file=slide.png > type=50L > > > If you agree, I could implement dinamic tile. > > Happy hacking :), > Ricardo Cruz That's alright, let's discuss it after the 0.0.6 release. I have a lack of time to commet your ideas, sorry. You can expect a detailed comment about this issue tomorrow. Greetz... Tobias Gläßer |