Skip to content

Instantly share code, notes, and snippets.

@pomle
Last active July 14, 2017 14:37
Show Gist options
  • Save pomle/a83d0c03c812ba760a291d1dc5bfb0f3 to your computer and use it in GitHub Desktop.
Save pomle/a83d0c03c812ba760a291d1dc5bfb0f3 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<scene name="Intro">
<audio>
<music src="./intro/intro.ogg" id="intro"/>
</audio>
<events>
<after>
<action type="goto-scene" id="StageSelect"/>
</after>
<event name="create">
<action type="camera-move" to="0,0,140"/>
<action type="transform">
<opacity to="0"/>
<position to="0,608,-800"/>
<entity instance-id="logo"/>
</action>
<action type="transform">
<opacity to="0"/>
<entity instance-id="story1"/>
<entity instance-id="story2"/>
<entity instance-id="story3"/>
</action>
</event>
<event name="start">
<action type="play-sequence" id="intro"/>
<action type="play-sequence" id="story"/>
</event>
<event name="input">
<action type="emit-event" name="end">
<condition value="start"/>
<condition value="keydown"/>
</action>
</event>
</events>
<sequences>
<sequence id="story">
<action type="wait" duration="1"/>
<action type="transform">
<tween duration="1">
<opacity to="1"/>
</tween>
<entity instance-id="story1"/>
</action>
<action type="wait" duration="5"/>
<action type="transform">
<tween duration="1">
<opacity to="0"/>
</tween>
<entity instance-id="story1"/>
</action>
<action type="transform">
<tween duration="1">
<opacity to="1"/>
</tween>
<entity instance-id="story2"/>
</action>
<action type="wait" duration="5"/>
<action type="transform">
<tween duration="1">
<opacity to="0"/>
</tween>
<entity instance-id="story2"/>
</action>
<action type="transform">
<tween duration="1">
<opacity to="1"/>
</tween>
<entity instance-id="story3"/>
</action>
<action type="wait" duration="5"/>
<action type="transform">
<tween duration="1">
<opacity to="0"/>
</tween>
<entity instance-id="story3"/>
</action>
</sequence>
<sequence id="intro">
<action type="play-audio" id="intro"/>
<action type="wait" duration="25.5"/>
<action type="camera-move" to=",576,">
<tween duration="12" easing="easeIn,1.7"/>
</action>
<action type="transform">
<tween duration="1.8" easing="easeIn,4">
<opacity to="1"/>
<position to=",,0"/>
</tween>
<entity instance-id="logo"/>
</action>
<action type="wait" duration="50"/>
<action type="emit-event" name="end"/>
</sequence>
</sequences>
<entities>
<textures>
<texture url="./intro/intro.png" w="256" h="256"/>
</textures>
<animations>
<animation id="slice_0">
<frame x="1" y="19" w="16" h="16"/>
</animation>
<animation id="slice_1">
<frame x="1" y="1" w="16" h="16"/>
</animation>
<animation id="slice_2">
<frame x="1" y="37" w="16" h="16"/>
</animation>
<animation id="slice_3">
<frame x="1" y="55" w="16" h="16"/>
</animation>
<animation id="slice_4">
<frame x="19" y="55" w="16" h="16"/>
</animation>
<animation id="slice_5">
<frame x="19" y="37" w="16" h="16"/>
</animation>
<animation id="slice_6">
<frame x="19" y="19" w="16" h="16"/>
</animation>
<animation id="slice_7">
<frame x="19" y="1" w="16" h="16"/>
</animation>
<animation id="slice_8">
<frame x="37" y="1" w="16" h="16"/>
</animation>
<animation id="slice_9">
<frame x="37" y="19" w="16" h="16"/>
</animation>
<animation id="slice_10">
<frame x="37" y="37" w="16" h="16"/>
</animation>
<animation id="slice_11">
<frame x="37" y="55" w="16" h="16"/>
</animation>
<animation id="slice_12">
<frame x="55" y="55" w="16" h="16"/>
</animation>
<animation id="slice_13">
<frame x="55" y="37" w="16" h="16"/>
</animation>
<animation id="slice_14">
<frame x="55" y="19" w="16" h="16"/>
</animation>
<animation id="slice_15">
<frame x="55" y="1" w="16" h="16"/>
</animation>
<animation id="slice_16">
<frame x="73" y="1" w="16" h="16"/>
</animation>
<animation id="slice_17">
<frame x="73" y="19" w="16" h="16"/>
</animation>
<animation id="slice_18">
<frame x="73" y="37" w="16" h="16"/>
</animation>
<animation id="slice_19">
<frame x="73" y="55" w="16" h="16"/>
</animation>
<animation id="slice_20">
<frame x="91" y="55" w="16" h="16"/>
</animation>
<animation id="slice_21">
<frame x="91" y="37" w="16" h="16"/>
</animation>
<animation id="slice_22">
<frame x="109" y="37" w="16" h="16"/>
</animation>
<animation id="slice_23">
<frame x="109" y="55" w="16" h="16"/>
</animation>
<animation id="slice_24">
<frame x="127" y="37" w="16" h="16"/>
</animation>
<animation id="slice_25">
<frame x="127" y="55" w="16" h="16"/>
</animation>
<animation id="slice_26">
<frame x="145" y="55" w="16" h="16"/>
</animation>
<animation id="slice_27">
<frame x="145" y="37" w="16" h="16"/>
</animation>
<animation id="slice_28">
<frame x="163" y="37" w="16" h="16"/>
</animation>
<animation id="slice_29">
<frame x="163" y="55" w="16" h="16"/>
</animation>
<animation id="slice_30">
<frame x="181" y="55" w="16" h="16"/>
</animation>
<animation id="slice_31">
<frame x="181" y="37" w="16" h="16"/>
</animation>
<animation id="slice_32">
<frame x="127" y="19" w="16" h="16"/>
</animation>
<animation id="slice_33">
<frame x="145" y="19" w="16" h="16"/>
</animation>
<animation id="slice_34">
<frame x="163" y="19" w="16" h="16"/>
</animation>
<animation id="slice_35">
<frame x="181" y="19" w="16" h="16"/>
</animation>
<animation id="slice_36">
<frame x="127" y="1" w="16" h="16"/>
</animation>
<animation id="slice_37">
<frame x="145" y="1" w="16" h="16"/>
</animation>
<animation id="slice_38">
<frame x="163" y="1" w="16" h="16"/>
</animation>
<animation id="slice_39">
<frame x="181" y="1" w="16" h="16"/>
</animation>
<animation id="slice_40">
<frame x="91" y="1" w="16" h="16"/>
</animation>
<animation id="slice_41">
<frame x="109" y="1" w="16" h="16"/>
</animation>
<animation id="slice_42">
<frame x="109" y="19" w="16" h="16"/>
</animation>
<animation id="slice_43">
<frame x="91" y="19" w="16" h="16"/>
</animation>
<animation id="grey">
<frame x="181" y="55" w="16" h="16"/>
</animation>
<animation id="transparent">
<frame x="217" y="55" w="16" h="16"/>
</animation>
<animation id="black">
<frame x="217" y="37" w="16" h="16"/>
</animation>
<animation id="win1">
<frame x="199" y="37" w="16" h="16"/>
</animation>
<animation id="win2">
<frame x="199" y="55" w="16" h="16"/>
</animation>
<animation id="logo">
<frame x="3" y="73" w="188" h="100"/>
</animation>
<animation id="balcony1">
<frame x="199" y="1" w="16" h="16"/>
</animation>
<animation id="balcony2">
<frame x="199" y="19" w="16" h="16"/>
</animation>
</animations>
<entity id="logo">
<geometry type="plane" w="188" h="100">
<face animation="logo"/>
</geometry>
</entity>
<entity id="story1">
<text font="nintendo"><![CDATA[
IN THE YEAR 200X, A SUPER ROBOT
NAMED MEGAMAN WAS CREATED.
]]></text>
</entity>
<entity id="story2">
<text font="nintendo"><![CDATA[
DR. LIGHT CREATED MEGAMAN TO STOP
THE EVIL DESIRES OF DR. WILY.
]]></text>
</entity>
<entity id="story3">
<text font="nintendo"><![CDATA[
HOWEVER, AFTER HIS DEFEAT,
DR. WILY CREATED EIGHT OF HIS OWN
ROBOTS TO COUNTER MEGAMAN.
]]></text>
</entity>
<entity id="IpqEDd">
<geometry type="plane" w="512" h="240" w-segments="32" h-segments="15">
<face animation="slice_25" index="[898,834,908,600,668,608,634,558,622,626,958,916]"/>
<face animation="slice_20" index="[784,848,912,760,824,888,952,810,874,938]"/>
<face animation="slice_3" index="[900,836,768,728,792,856,942,864,928,882,946,892]"/>
<face animation="slice_2" index="[772,704,780,664,878,800,818,828]"/>
<face animation="slice_24" index="[770,844,932,536,604,494,570,544,562,894,852]"/>
<face animation="slice_10" index="[850,832,564,956]"/>
<face animation="slice_11" index="[914,896,628]"/>
<face animation="slice_5" index="[706,774,782,666,880,806,802,820,830]"/>
<face animation="slice_21" index="[720,738,696,746]"/>
<face animation="slice_22" index="[722,740,698,748]"/>
<face animation="slice_23" index="[786,954,890,826,762,812,876,940]"/>
<face animation="slice_4" index="[838,902,846,910,730,794,858,922,944,930,866,884,948,870,934]"/>
<face animation="slice_36" index="[904,906,518,918,926,924,656,658,950,936,366,372,360,348,344,340,472,470,532,528,474,476,478,480,484]"/>
<face animation="slice_37" index="[842,328,452,708,712,778,646,714]"/>
<face animation="slice_27" index="[466,920,804,488]"/>
<face animation="slice_26" index="[530,594,868,616,552]"/>
<face animation="slice_28" index="[588,582,512,592,364]"/>
<face animation="slice_29" index="[652,576,640]"/>
<face animation="slice_19" index="[580,886,822,670,606,546,492]"/>
<face animation="slice_18" index="[516,758,482,428]"/>
<face animation="slice_12" index="[654,590,578,642,614,684,620]"/>
<face animation="slice_13" index="[526,514,550,602,650,556,542]"/>
<face animation="slice_33" index="[520,320,390,396,334,412,612,376,596]"/>
<face animation="slice_34" index="[322,384,392,336,398,522,418,598,432,430]"/>
<face animation="slice_35" index="[324,394,338,352,356,374,378,408,424,534,368,362]"/>
<face animation="slice_39" index="[400,402,256,258,270,272,274,716,718,676,678,732,276,284,290,292,296,298,306,310,318,610,692,690,496,414,416,540,538]"/>
<face animation="slice_38" index="[460,262,264,266,268,330,388,454,456,584,586,486,316,314,312,304,302,288,282,280,662,660]"/>
<face animation="slice_31" index="[462,386,448,260,332,458,644,278,286,300,294,308,404,672,680,686,674,734]"/>
<face animation="slice_6" index="[194,198,206,210,218,222,226,234,238,242,246,254]"/>
<face animation="slice_16" index="[64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126]"/>
<face animation="slice_15" index="[128,130,132,134,140,142,144,146,152,154,156,158,160,162,168,170,172,174,176,178,180,182,188,190]"/>
<face animation="slice_7" index="[136,148,164,184]"/>
<face animation="slice_8" index="[138,150,166,186]"/>
<face animation="slice_14" index="[204,196,192,208,216,220,224,232,236,240,244,252]"/>
<face animation="slice_9" index="[200,202,212,214,228,230,248,250]"/>
</geometry>
</entity>
<entity id="NAGscu">
<geometry type="plane" w="128" h="720" w-segments="8" h-segments="45">
<face animation="slice_0">
<range x="2" y="4-45"/>
</face>
<face animation="slice_43" index="[38]">
<range x="3,5,7" y="5-45"/>
</face>
<face animation="slice_32">
<range x="4,6,8" y="5-45"/>
</face>
<face animation="win1" index="[262,266,270,342,346,350,422,426,430,502,506,510,582,586,590,662,666,670,190,186,182,102,106,110]"/>
<face animation="win2" index="[278,282,286,438,442,446,526,522,518,358,362,366,598,602,606,686,682,678,198,202,206,118,122,126]"/>
<face animation="balcony1" index="[224,304,384,464,544,624,144,64]"/>
<face animation="balcony2" index="[560,480,400,320,240,80,160,640]"/>
<face animation="slice_17" index="[52,54,56,58,60,62]"/>
<face animation="slice_1" index="[34]"/>
<face animation="slice_40" index="[22]"/>
<face animation="slice_41" index="[24,26,28,30]"/>
<face animation="grey" index="[40,46,44]"/>
<face animation="slice_42" index="[42]"/>
</geometry>
</entity>
</entities>
<layout>
<entities>
<entity id="logo" x="0" y="608" z="0" instance-id="logo"/>
<entity id="IpqEDd" x="0" y="-40" z="-150" scale="1.6"/>
<entity id="NAGscu" x="140" y="230" z="0"/>
<entity id="Megaman" x="136" y="552" dir="-1"/>
<entity id="story1" x="0" y="-70" z="0" instance-id="story1"/>
<entity id="story2" x="0" y="-70" z="0" instance-id="story2"/>
<entity id="story3" x="0" y="-70" z="0" instance-id="story3"/>
</entities>
<behaviors>
<solids>
<rect x="148" y="534" w="112" h="16"/>
</solids>
</behaviors>
</layout>
</scene>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment