Write and Load XML File

After adding a new cutscene by click on the small “+”, the newly build cutscene will show up at the screen 1.











So you can go back and continue edit the cutscene you build before. However after the application is closed, the data you just built is gone again. That’s why we need to write the xml file out and allow user to load it next time they open the application.

The XML file that got written out look like this:






This file looks basically the same as the xml file Dayna and I did manually which means I realized the xml file requirement the game want.








Below are some code how I realize this:

writeLoadXMLFile3 writeLoadXMLFile4

Leave a Reply

You must be logged in to post a comment.