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.

learn more… | top users | synonyms

12
votes
7answers
7k 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 ...
1
vote
1answer
2k views

XNA doesn't compile my XML to an XNB, because of namespaces?

I am sorry, because I know, that this question came up before, but that thread doesn't help me so I decided to aks my own question. My problem is the following: I have a XML-file with the following ...
31
votes
6answers
5k views

What is a good file format for saving game data? [closed]

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 ...
12
votes
5answers
777 views

Why place entity config outside of scripts?

I've seen a lot of games that define the entity components in script files, but when they configure each entity and specify what components it has, they use some other file format (like XML). Why do ...
1
vote
1answer
926 views

Going from using XMLSerializer to using the XNA Content Pipeline

A well known limitation of using the XNA Content Pipeline is that it is not included in the XNA redistributable. So, if you want to create an editor for your game, the designer must download the whole ...
5
votes
1answer
551 views

How can I pass an external instance to the constructor of an object that's being created using the default XNA XML content loader?

I'm trying to understand how to use the XNA XML content importer to instantiate non-trivial objects that are more than a collection of basic properties (e.g., a class that inherits from ...
5
votes
4answers
839 views

Drawbacks of using reflection for a component based system at loading-time

I'm coding a little casual game in Java using Slick2D. This game use a lot of different "objects", managed in a composite way. So, firearms, furniture in the map, NPC and player character will be ...
3
votes
2answers
201 views

Simple Update loop to show questions one at a time

I have two lists which work with an XML file which holds questions and answers. At the moment the project displays all the questions at the same time so they "flicker" on the screen and iterate ...
2
votes
1answer
787 views

Using XML in XNA to display maths questions which are associated with objects

I've got a snake game with three objects: apple, pear & orange. I would like these to be associated with questions which I'm trying to create in XML. This is what I've done so far... <?xml ...
9
votes
2answers
8k 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 ...
6
votes
2answers
758 views

Can XNA Content Pipeline split one content file into several .xnb?

Let's say I have an xml file which looks like this <Weapons> <Weapon> <Name>Pistol</Name> ... </Weapon> <Weapon> <Name>MachineGun</Name> ... ...
12
votes
3answers
2k 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 ...
15
votes
4answers
4k 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, ...
16
votes
7answers
3k 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. ...
4
votes
3answers
269 views

Runtime Storage vs Static Storage

Runtime Storage (hardcoded) vs Static Storage (file storage) (original question) I extended my engines GUI from procedural style to object orientated style, but I still have to create ...
18
votes
6answers
4k 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 ...