Thursday, 26 March 2009

Move to XML

To improve the implementation of the missile defence game, i have decided to make it dynamic so it loads the word from a array dynamical. This all owes me to set an array and then the game load as many words as i like and they are used in the game.

To optimise this i have decided to load the information from XML documents so that it can be easily changed. To fill the XML files i have used the site http://homepage.ntlworld.com/adam.bozon/anagramsolver.htm. I have kept the XML's separate so that i can add additional words into it if required.

i have split the xml into simple formatting and different sections according to the size of the word. For the purpose of my demo i have decided to only add 30 words to each XML but this could be increased where required, and when there was not enough words i have added some random selections of letters:

No comments:

Post a Comment