XML vs YAML vs JSON for a 2D RPG

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. Which is the best choice? I have experience with JSON in JavaScript, but not C++. Are there any good references for parsing JSON in C++ if this is the route to go? **Edit** 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. **Edit 2** 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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JSON 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏