<object name="Moon Child" type="player" color="0x2492ff" instructions="Arrow keys or WASD to move.">
<shape destroyable="true">
<perimeter>
<polygon x="0" y="0">
<vertex x="-0.38" y="-0.1975"/>
<vertex x="0.38" y="-0.1975"/>
<vertex x="0.25" y="0.3575"/>
<vertex x="0.1" y="0.4775"/>
<vertex x="-0.1" y="0.4775"/>
<vertex x="-0.25" y="0.3575"/>
</polygon>
</perimeter>
<visual priority="5" type="swf" url="assets/gameAssets/cart.swf" sourcePixelsPerMeter="40"/>
<physics source="perimeter" gravity="true" density="1.05" bounciness="0.05" friction="1.0" solid="true" anchored="false" angleLock="true" collisionSoundURL="assets/gameAssets/woodLight.mp3" collisionSoundPriority="1"/>
</shape>
<controller>
<otherCollided>
<awardScoreOfOther/>
<destroyOther/>
</otherCollided>
<always mustBeAirborne="true" notLateral="true">
<playAnim animLabel="airborne"/>
</always>
<always mustBeAirborne="true" movingLeft="true">
<playAnim animLabel="airborneLeft"/>
</always>
<always mustBeAirborne="true" movingRight="true">
<playAnim animLabel="airborneRight"/>
</always>
<always mustBeGrounded="true" notLateral="true">
<playAnim animLabel="idle"/>
</always>
<always mustBeGrounded="true" movingLeft="true">
<playAnim animLabel="movingLeft"/>
</always>
<always mustBeGrounded="true" movingRight="true">
<playAnim animLabel="movingRight"/>
</always>
<keyPress key="UP" extraKey="W" action="OnDown" mustBeGrounded="true">
<thrust impulse="editable" onePerLife="false" offsetAng="90" absoluteAng="true"/>
</keyPress>
<keyPress key="RIGHT" extraKey="D" action="WhileDown" mustBeGrounded="true">
<thrust impulse="0.25" onePerLife="false" offsetAng="0" absoluteAng="true" groundHug="true"/>
</keyPress>
<keyPress key="LEFT" extraKey="A" action="WhileDown" mustBeGrounded="true">
<thrust impulse="0.25" onePerLife="false" offsetAng="180" absoluteAng="true" groundHug="true"/>
</keyPress>
<keyPress key="RIGHT" extraKey="D" action="WhileDown" mustBeAirborne="true">
<thrust impulse="0.15" onePerLife="false" offsetAng="0" absoluteAng="true"/>
</keyPress>
<keyPress key="LEFT" extraKey="A" action="WhileDown" mustBeAirborne="true">
<thrust impulse="0.15" onePerLife="false" offsetAng="180" absoluteAng="true"/>
</keyPress>
<onDestroyed>
<emitPFX lifetime="R(1,2.0)" quantity="30" scale="R(1,2) to 0.0" color_r="R(0.4,1.0)" color_g="R(0.4,1.0)" color_b="R(0.4,1.0)" inheritMomentum="false" resistance="R(0,0.05)" sourcePixelsPerMeter="40" velocity="R(0.5,2.5)" angleOffset="R(-100,-80)" gravity="false" visualURL="assets/gameAssets/photon_particle.png" inheritRotation="false" alpha="1.0 to 0.0" vAngle="0" xOffset="R(-.25,.25)" yOffset="R(-.4,.4)"/>
</onDestroyed>
</controller>
</object>
Some random computer coding...