Fileformats? How to structure? standards?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
MarekkPie
Inner party member
Posts: 587
Joined: Wed Dec 28, 2011 4:48 pm
Contact:

Re: Fileformats? How to structure? standards?

Post by MarekkPie »

Pinkishu wrote: Yeah, I wasn't asking for implementation ^^" just if there are some kind of standardized formats developers are encouraged to use (like for some things its encourage to use JSON, or some RFC-format like IRC communication)
Or pointers at how to structure custom foramts
That's all up to you. It's less about following some format, and more about conveying to other level designers how your format is constructed. A good example of this is Tiled's TMX format.

But really, you don't even need to go that far. Tiled has to get down to the nitty-gritty since it's cross framework. You could probably just make a file format to your liking, and include an example in whatever packaging you have for your modding/level editting information.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Fileformats? How to structure? standards?

Post by Lafolie »

Two logical choices are lua scripts or just plain text. The real problem is writing functions that read/write these files. If you're using plaintext it doesn't really matter how the document is structured, as the structure would be defined by the way you output data.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
Post Reply

Who is online

Users browsing this forum: CharlesAceta and 2 guests