-
[HELP] Storing Tile Map Array Data In XML
Is there any easy way to read in tile map data from an XML file?
I'm working on an AS3 game engine which uses a multidimensional array for the map data, like this:
var map:Array = [
[1, 1, 1, 1, 1, 1, 1],
[1, 2, 3, 4, 2, 5, 1],
[1, 6, 4, 2, 2, 3, 1],
[1, 2, 2, 2, 5, 6, 1],
[1, 1, 1, 1, 1, 1, 1]
];
Ideally I'd like to store the data in XML so that I don't have to hard-code it all in actionscript. Is there an easy pain-free way to store a multi-dimensional array in XML and read it in? (The data would be read-only so my only concern would be loading in the XML file and reading the data into an array using AS3)
Anyone have any ideas?
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|