Thursday, May 19, 2016
Final Xml and Xml Reader
Initialization and setting up the xml. The xmlName is a public string that is changed based on which state the wheel needs to be. Call the other methods.
The xml finds the id and ignores the commas to read the numbers, etc. The id is used throughout the reader to identify the slice, the correct image, color etc.
The text displayed on the screen is changed based on the Xml and the audio is loaded throught the xml as well with modular names.
Each shader on objects is changed to accommodate Transparency.
Folder Setup
In order to switch the Wheel from vulnerable to secure, we used a string to call each xml when the time comes. This way, we do not need to have two xmlReader scripts.
According to how the xmlReader finds urls, the folders need to be setup in a specific way. This way the xml knows exactly where to find the photo, audio, etc...
By keeping the names of the objects being called generic, the user knows exactly what the object is and the xml does not have to be changed to accommodate a new photo. The number is 0-7 to comply with the array index.
Subscribe to:
Posts (Atom)