[Super-tux-devel] File format (again!)
Brought to you by:
wkendrick
From: <ri...@ae...> - 2004-02-26 19:26:51
|
Hey there, While implementing the button bar in the level editor, the following=20 problem appeard: Tiles are currently setuped in the code, instead of through a file.=20 This makes them hardly to be used in the level editor button bar and,=20 in the future, to implement stuff, just as the sliding. A setup file for the tiles would need to have information, just as=20 number of tiles, filenames and the type of each tile (as specified in=20 the development page by Ingo). So, we should all agree with a file format for it, and that would,=20 maybe, be used also by the other files, just as the highscore, level=20 subset and the level themselves. Personally, I found XML to be a waste of space and a bit hard to=20 read. So, I would vote for an INI-like file format that are used by=20 windows and kde. I bet your health that it would be more than=20 enough ;) I have previously, mentioned this and even sended a function that=20 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=3D3 [TILE 0] file=3Dwater.png type=3Dfull [TILE 1] file=3Dcloud.png type=3Dempty [TILE 2] file=3Dslide.png type=3D50L If you agree, I could implement dinamic tile. Happy hacking :), Ricardo Cruz _________________________________________________________ Screensavers e wallpapers gr=E1tis: http://freegames.online.pt |