Hello everyone,<br>
<br>
Attached is a patch I made that implements loading and saving demos into
xml format (and zlib compressed counterpart). Saving and loading is
accessible from the developer menu (Shift-Backspace) and using "L" to
load and "D" to save.<br>
<br>
This is my first piece of non-book-exercise type code in C++, so it's
bound to be a little less efficient than it should be. The most
particular thing that I think should be changed is overloading
">>" to load values to the ButtonState enum instead of using a
function, but because I'm not established in C++, that means I might
waste tens of minutes recompiling because every declaration is in DSQ.h
(a gripe I have about it).<br>
<br>
A few to-dos for the demo system:<br>
- Make a UI so that it's not cluttering up the developer menu<br>
- Fix a minor glitch that freezes input when there are no frames recorded (should not happen, but does anyway)<br>
- Add entity states to demo file so that we're not shooting at
non-existent enemies or trying to open a song egg that's already opened.<br>
<br>
That's all I can think of at the moment. Have fun with the patch.<br>
<br>
--GMMan<br>
<br>
P. S. Mercurial decided to swap out entire files instead of doing a simple diff, so the attached patch is gzipped.<br>
<br>
------------------------------------------<br>
<br>
Description for the patch:<br>
<br>
Implemented demo loading and saving.<br>
<br>
Features can be accessed through the developer menu at Shift-Backspace.
"L" is for loading and "D" is for saving. If you want to be able to use
the developer menu globally, make sure to undefine AQUARIA_FULL and
AQUARIA_DEMO.<br>
<br>
Patch by GMMan (Yukai Li) <<a href="mailto:yukaili.geek@gmail.com">yukaili.geek@gmail.com</a>><br>