• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Tile-Based Worlds > Externalizing the World Data

Externalizing the World Data

One of the best features of TBWs is the ease with which you can store the data that represents a world. For instance, for a game of Pac-Man (without the ghosts) you can easily create a text document to store the type of each cell. This text document is usually XML formatted. At a later date this information can be loaded into your game and the world can be built. In this section we'll look at a simple example of how to do this. (We're going to assume that you have some knowledge of XML and how to work with extracting data from XML objects in Flash.)

Here is the XML structure we will use to store the world data:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint