I can't figure out whether or not to use XML, YAML, or JSON for a C++ 2D RPG.
Here are my thoughts:
- I need something which is simple to save not just player data, but environment data, such as object (x, y) coordinates; load times; dates; graphics configurations, etc.
- I need something flexible, easy to use, and definitely light weight, but powerful to handle the above.
Honestly, if a text file seems like the simplest and most effective solution for something like this (especially if I can just write it to binary), then I'm all ears.
Feel free to provide other suggestions as well. Are these the only options? And binary serialization formats (like Google Protocol Buffers) are completely out of the question?
以上就是XML vs YAML vs JSON for a 2D RPG的详细内容，更多请关注web前端其它相关文章！