<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<el:level xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://enigma-game.org/schema/level/1 level.xsd" xmlns:el="http://enigma-game.org/schema/level/1">
  <el:protected>
    <el:info el:type="level">
      <el:identity el:title="Why So Slow?" el:subtitle="" el:id="jc03"/>
      <el:version el:score="1" el:release="2" el:revision="1" el:status="released"/>
      <el:author el:name="Jens-Christian Korth" el:email="" el:homepage=""/>
      <el:copyright>Copyright © Jens-Christian Korth</el:copyright>
      <el:license el:type="Donated to Enigma under the projects license" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="false" el:single="true" el:network="false"/>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
wo["GlobalForce"] = po(80, -80)

ti[" "] = {"fl_bluegray"}
ti["-"] = {"fl_abyss"}
ti["#"] = {"st_tigris"}
ti["n"] = {"it_trigger", target="update_force", _comp="_fy", _val=40}
ti["e"] = {"it_trigger", target="update_force", _comp="_fx", _val=-40}
ti["s"] = {"it_trigger", target="update_force", _comp="_fy", _val=-40}
ti["w"] = {"it_trigger", target="update_force", _comp="_fx", _val=40}
ti["O"] = {"st_oxyd", flavor="d", name="oxyd#"}
ti["@"] = {"ac_marble_black", 0.0, 0.5, name="ball", _fx=80, _fy=-80}

wo(ti, " ", {
    "##O####O####O####O##",
    "#-nnnnnnnnnnnnnnnn-#",
    "#w                e#",
    "Ow                eO",
    "#w                e#",
    "#w                e#",
    "#w        @       e#",
    "#w                e#",
    "#w                e#",
    "Ow                eO",
    "#w                e#",
    "#-ssssssssssssssss-#",
    "##O####O####O####O##"})

wo:shuffleOxyd({no["oxyd#*"]:sort("circular"), circular=true})

function update_force(value, sender)
    no["ball"][sender["_comp"]] = sender["_val"]
    wo["GlobalForce"] = po(no["ball"]["_fx"], no["ball"]["_fy"])
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
