XML (Extensible Markup Language) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
16
votes
6answers
2k views
Would it be better to use XML/JSON/Text or a database to store game content?
I'm considering how to implement a component-based game, as that seems to be the hot thing and I like the idea of such a flexible design. One of the features of such a design is that adding new ...
10
votes
4answers
2k views
How to choose how to store data?
Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
- Chinese Proverb
I could ask what kind of data storage I should use for my actual project, ...
30
votes
6answers
2k views
What is a good file format for saving game data?
I need to save some custom game data. Map, player, etc.
All of them will have "sub objects". For example, a map and map will have an "array" of tiles. ie, hierarchical data. Hopefully nothing ...
7
votes
2answers
6k views
How to use XML files as content files in XNA?
I have an XML file representing different car manufactures that will be available in my game. The file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<XnaContent>
<Asset ...
15
votes
7answers
2k views
'Binary XML' for game data?
I'm working on a level editing tool that saves its data as XML.
This is ideal during development, as it's painless to make small changes to the data format, and it works nicely with tree-like data.
...
10
votes
7answers
4k views
What is a good way to store tilemap data?
I'm developing a 2D platformer with some uni friends. We've based it upon the XNA Platformer Starter Kit which uses .txt files to store the tile map. While this is simple it does not give us enough ...
12
votes
3answers
1k views
How to store a shmup level?
I am developing a 2D shmup (i.e. Aero Fighters) and I was wondering what are the various ways to store a level. Assuming that enemies are defined in their own xml file, how would you define when an ...
2
votes
1answer
1k views
Xna, writing XML </Asset> end element
got another question here. Its not about actually writing/reading files in XML, i already know how to-do this. But rather something that has bugged me for awhile.
Ok, so when i write out my files, ...