<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>ending es</name>
    <events>
        <event-group description="" sid="773255487853615" title="ending">
            <sub-events>
                <event-block sid="978455455639942">
                    <conditions>
                        <condition id="-2" name="On start of layout" sid="768630320895673" type="System" />
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="919579093914005" type="Function">
                            <param id="0" name="Name">&quot;ending.hide&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="332548315734664">
                    <conditions>
                        <condition id="0" name="On function" sid="469557797872554" type="Function">
                            <param id="0" name="Name">&quot;ending.hide&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="375542630828724">
                            <conditions />
                            <actions>
                                <action id="-9" name="Destroy" sid="875242901706088" type="blur2" />
                                <action id="-9" name="Destroy" sid="730313759228829" type="btnHomeInEnding" />
                                <action id="-9" name="Destroy" sid="318078478839429" type="btnRestartInEnding" />
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="533058742317555">
                    <conditions>
                        <condition id="0" name="On function" sid="172479229211496" type="Function">
                            <param id="0" name="Name">&quot;ending.show&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="883555584562747">
                            <conditions />
                            <actions>
                                <action id="-9" name="Set value" sid="801071259186530" type="System">
                                    <param id="0" name="Variable">gameStatus</param>
                                    <param id="1" name="Value">STATUS_GAMEOVER</param>
                                </action>
                                <action id="-3" name="Create object" sid="480161088669094" type="System">
                                    <param id="0" name="Object to create">blur2</param>
                                    <param id="1" name="Layer">&quot;blur2&quot;</param>
                                    <param id="2" name="X">0</param>
                                    <param id="3" name="Y">0</param>
                                </action>
                                <action id="-7" name="Set size" sid="801301903544965" type="blur2">
                                    <param id="0" name="Width">LayoutWidth</param>
                                    <param id="1" name="Height">LayoutHeight</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="163412465898898">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="274246377633091" type="System">
                                    <param id="0" name="Variable">score</param>
                                    <param id="1" name="Comparison">5</param>
                                    <param id="2" name="Value">goodScore</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Call function" sid="582018652201846" type="Function">
                                    <param id="0" name="Name">&quot;ending.win&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="558555024308337">
                            <conditions>
                                <condition id="-22" name="Else" sid="493171592052383" type="System" />
                            </conditions>
                            <actions>
                                <action id="0" name="Call function" sid="996331765434857" type="Function">
                                    <param id="0" name="Name">&quot;ending.lose&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="307403029656710">
                    <conditions>
                        <condition id="0" name="On function" sid="865954343456457" type="Function">
                            <param id="0" name="Name">&quot;ending.win&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="593474983057660">
                            <conditions />
                            <actions>
                                <action id="-3" name="Create object" sid="217711101421330" type="System">
                                    <param id="0" name="Object to create">btnHomeInEnding</param>
                                    <param id="1" name="Layer">&quot;enddingBG&quot;</param>
                                    <param id="2" name="X">1830</param>
                                    <param id="3" name="Y">980</param>
                                </action>
                                <action id="-3" name="Create object" sid="898929684442268" type="System">
                                    <param id="0" name="Object to create">btnRestartInEnding</param>
                                    <param id="1" name="Layer">&quot;enddingBG&quot;</param>
                                    <param id="2" name="X">1700</param>
                                    <param id="3" name="Y">980</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="163573500495799">
                    <conditions>
                        <condition id="0" name="On function" sid="497471507525435" type="Function">
                            <param id="0" name="Name">&quot;ending.lose&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="569966828903782">
                            <conditions />
                            <actions>
                                <action id="-3" name="Create object" sid="124456220407385" type="System">
                                    <param id="0" name="Object to create">btnHomeInEnding</param>
                                    <param id="1" name="Layer">&quot;enddingBG&quot;</param>
                                    <param id="2" name="X">1830</param>
                                    <param id="3" name="Y">980</param>
                                </action>
                                <action id="-3" name="Create object" sid="649349061550849" type="System">
                                    <param id="0" name="Object to create">btnRestartInEnding</param>
                                    <param id="1" name="Layer">&quot;enddingBG&quot;</param>
                                    <param id="2" name="X">1700</param>
                                    <param id="3" name="Y">980</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="656387065690460">
                    <conditions>
                        <condition id="0" name="On function" sid="664417125765195" type="Function">
                            <param id="0" name="Name">&quot;ending.playVO&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="352264811891785">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="998770018750340" type="System">
                                    <param id="0" name="Variable">score</param>
                                    <param id="1" name="Comparison">5</param>
                                    <param id="2" name="Value">goodScore</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="7" name="Play (by name)" sid="595392784571803" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;mg_vo_v020&quot;</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">&quot;endingVO&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="310113932265344">
                            <conditions>
                                <condition id="-22" name="Else" sid="331762258160606" type="System" />
                            </conditions>
                            <actions>
                                <action id="7" name="Play (by name)" sid="955896455347222" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;s_effect_006&quot;</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">&quot;endingVO&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="883398882888817">
                    <conditions>
                        <condition id="0" name="On function" sid="158539328541812" type="Function">
                            <param id="0" name="Name">&quot;ending.playSFX&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="461352251090755">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="529603697148475" type="System">
                                    <param id="0" name="Variable">score</param>
                                    <param id="1" name="Comparison">5</param>
                                    <param id="2" name="Value">goodScore</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="7" name="Play (by name)" sid="203661971167100" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;s_effect_005&quot;</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">&quot;endingSFX&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="581000741520725">
                            <conditions>
                                <condition id="-22" name="Else" sid="991770778752577" type="System" />
                            </conditions>
                            <actions>
                                <action id="7" name="Play (by name)" sid="281415949575089" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;mg_vo_v012&quot;</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">&quot;endingSFX&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="132401198250069">
                    <conditions>
                        <condition id="0" name="On ended" sid="205015896555307" type="Audio">
                            <param id="0" name="Tag">&quot;endingVO&quot;</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="544599080609409" type="System">
                            <param id="0" name="Variable">gameStatus</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">STATUS_GAMEOVER</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="834884302344904" type="Function">
                            <param id="0" name="Name">&quot;ending.playSFX&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="618128092193115">
                    <conditions>
                        <condition id="7" name="Cursor is over object" sid="209529930845767" type="Mouse">
                            <param id="0" name="Object">btnRestartInEnding</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="371822840171772" type="System">
                            <param id="0" name="Variable">gameStatus</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">STATUS_GAMEOVER</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Set cursor style" sid="266728530974366" type="Mouse">
                            <param id="0" name="Cursor style">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="861634057334895">
                    <conditions>
                        <condition id="7" name="Cursor is over object" sid="786073113942210" type="Mouse">
                            <param id="0" name="Object">btnHomeInEnding</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="837343847904413" type="System">
                            <param id="0" name="Variable">gameStatus</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">STATUS_GAMEOVER</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Set cursor style" sid="430587232596200" type="Mouse">
                            <param id="0" name="Cursor style">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="885636518005475">
                    <conditions>
                        <condition id="17" name="On tap object" sid="654989971877429" type="Touch">
                            <param id="0" name="Object">btnRestartInEnding</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="274992965922730" type="System">
                            <param id="0" name="Variable">gameStatus</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">STATUS_GAMEOVER</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-9" name="Set value" sid="938094526882036" type="System">
                            <param id="0" name="Variable">gameStatus</param>
                            <param id="1" name="Value">STATUS_RESTART</param>
                        </action>
                        <action id="0" name="Call function" sid="919929188395481" type="Function">
                            <param id="0" name="Name">&quot;ending.stopVO&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                        <action id="-26" name="Restart layout" sid="215573774457752" type="System" />
                    </actions>
                </event-block>
                <event-block sid="690457530808345">
                    <conditions>
                        <condition id="17" name="On tap object" sid="388591580467208" type="Touch">
                            <param id="0" name="Object">btnHomeInEnding</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="282960115914261" type="System">
                            <param id="0" name="Variable">gameStatus</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">STATUS_GAMEOVER</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-9" name="Set value" sid="724229936115718" type="System">
                            <param id="0" name="Variable">gameStatus</param>
                            <param id="1" name="Value">STATUS_TITLE</param>
                        </action>
                        <action id="0" name="Call function" sid="708683930737823" type="Function">
                            <param id="0" name="Name">&quot;ending.stopVO&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                        <action id="-9" name="Set value" sid="772664694129129" type="System">
                            <param id="0" name="Variable">adjustVolume</param>
                            <param id="1" name="Value">NORMAL_VOLUME</param>
                        </action>
                        <action id="-9" name="Set value" sid="441335746308540" type="System">
                            <param id="0" name="Variable">allowPlayMusic</param>
                            <param id="1" name="Value">0</param>
                        </action>
                        <action id="-25" name="Go to layout (by name)" sid="694457127556360" type="System">
                            <param id="0" name="Layout">&quot;menu&quot;</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="728930730604080">
                    <conditions>
                        <condition id="0" name="On function" sid="993900024986583" type="Function">
                            <param id="0" name="Name">&quot;ending.stopVO&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="6" name="Stop" sid="994808624617522" type="Audio">
                            <param id="0" name="Tag">&quot;endingVO&quot;</param>
                        </action>
                        <action id="6" name="Stop" sid="931812196086861" type="Audio">
                            <param id="0" name="Tag">&quot;endingSFX&quot;</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-group>
    </events>
</c2eventsheet>
