This is the repository for Yandols' Bachelor's Degree Final Year Project Game (2019). Game created in Construct 2 and Launcher/Updater is created with AHK.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ResistanceSaga/Event sheets/ES - Preloader.xml

100 lines
5.2 KiB

<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
<!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
<name>ES - Preloader</name>
<events>
<comment>Import CSS and other Files</comment>
<event-block sid="106094978557666">
<conditions>
<condition id="-2" name="On start of layout" sid="301759806984551" type="System" />
</conditions>
<actions>
<action id="0" name="Import file" sid="394684443977430" type="Import">
<param id="0" name="Import file">&quot;buttonstyles.css&quot;</param>
</action>
<action id="2" name="Set CSS style" sid="624064939754692" type="PreloaderProgressBar">
<param id="0" name="Property name">&quot;background-color&quot;</param>
<param id="1" name="Value">&quot;#000000&quot;</param>
</action>
<action id="2" name="Set CSS style" sid="205936326275221" type="PreloaderProgressBar">
<param id="0" name="Property name">&quot;color&quot;</param>
<param id="1" name="Value">&quot;#0000FF&quot;</param>
</action>
</actions>
</event-block>
<comment>Force the game to switch to full screen mode if the game did not start in it</comment>
<event-block sid="551128505294710">
<conditions>
<condition id="-2" name="On start of layout" sid="589444204051829" type="System" />
<condition id="-18" inverted="1" name="Is in preview" sid="782271285373657" type="System" />
</conditions>
<actions>
<action id="10" name="Request fullscreen" sid="607915611232662" type="Browser">
<param id="0" name="Mode">0</param>
</action>
<action id="18" name="Lock orientation" sid="247124623151759" type="Browser">
<param id="0" name="Orientation">1</param>
</action>
</actions>
</event-block>
<comment>For compatibility reasons, forcefully shut down game if it was run on a mobile device for some reason</comment>
<event-block sid="374583832179131">
<conditions>
<condition id="-20" name="Is on mobile device" sid="430082288210219" type="System" />
</conditions>
<actions>
<action id="0" name="Alert" sid="771392905172935" type="Browser">
<param id="0" name="Message">&quot;Unsupported Operating Environment. The application will now close.&quot;</param>
</action>
<action id="1" name="Close" sid="630791167109339" type="Browser" />
</actions>
</event-block>
<comment>Progress bar and loading</comment>
<event-block sid="407600447699784">
<conditions>
<condition id="-2" name="On start of layout" sid="521637378565393" type="System" />
</conditions>
<actions>
<action id="-16" name="Wait" sid="715071429959216" type="System">
<param id="0" name="Seconds">0.2</param>
</action>
<action id="1" name="Set visible" sid="497581675156368" type="PreloaderProgressBar">
<param id="0" name="Visibility">1</param>
</action>
</actions>
</event-block>
<event-block sid="354924583797983">
<conditions>
<condition id="-1" name="Every tick" sid="335819371251369" type="System" />
</conditions>
<actions>
<action id="3" name="Set progress" sid="725026166485727" type="PreloaderProgressBar">
<param id="0" name="Value">round(loadingprogress * 100)</param>
</action>
</actions>
</event-block>
<comment>Handle data load completion and start the game</comment>
<event-block sid="707634872286812">
<conditions>
<condition disabled="1" id="-25" name="On loader layout complete" sid="986128008632173" type="System" />
<condition id="-8" name="Compare two values" sid="426367472133409" type="System">
<param id="0" name="First value">loadingprogress</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Second value">1</param>
</condition>
</conditions>
<actions>
<action id="3" name="Set progress" sid="960649115845165" type="PreloaderProgressBar">
<param id="0" name="Value">round(loadingprogress * 100)</param>
</action>
<action id="-16" name="Wait" sid="431223496906133" type="System">
<param id="0" name="Seconds">0.5</param>
</action>
<action id="-2" name="Go to layout" sid="827169667805913" type="System">
<param id="0" name="Layout">Intro Scene</param>
</action>
</actions>
</event-block>
</events>
</c2eventsheet>