<?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="Bad Nightmare" el:subtitle="" el:id="duffy117"/>
      <el:version el:score="2" el:release="3" el:revision="6" el:status="released"/>
      <el:author  el:name="Jacob Scott" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2004 Jacob Scott</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:comments>
        <el:code>Easy mode by Andreas Lochmann, new API converted by /dev/null</el:code>
      </el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
if wo["IsDifficult"] then
    wo["FrictionStrength"] = -0.4
    ti["."] = {"fl_redslab", friction = -10.0}
else
    wo["FrictionStrength"] = -0.25
    ti["."] = {"fl_redslab", friction = -16.0}
end

ti[" "] = {"fl_blueslab"}
ti[":"] = {"fl_space"}
ti["#"] = {"st_brownpyramid"}
ti["X"] = {"st_death"}
ti["Q"] = {"st_break_oxydc"}
ti["^"] = {"st_boulder_n"}
ti[">"] = {"st_boulder_e"}
ti["V"] = {"st_boulder_s"}
ti["<"] = {"st_boulder_w"}
ti["x"] = ti["X"] .. ti["."]
ti["+"] = ti["X"] .. ti[":"]
ti["B"] = ti[" "] .. {"st_passage_black_frame"}
ti["!"] = {"it_landmine"}
ti["l"] = {"it_extralife"}
ti["f"] = {"it_flag_black"}
ti["h"] = {"it_hammer"}
ti["O"] = {"st_oxyd"}
ti["o"] = {"st_oxyd"} .. ti[":"]
ti["k"] = {"#ac_top", range = 6 ,strength = 10}
ti["@"] = {"#ac_marble_black"}

wo(ti, " ", {
    "#######################################XXXXXXXXXXXXXXXXXXX",
    "#           #..  ..#. . . . . . x . . #    XX      X     X",
    "#  l        #..  ..# . . . . . . . . .#            X     X",
    "#           #......#. . . . . . . x .X#        X   X     X",
    "#           #  ....# . . . . .X.!. . .#  XXXXXXX         X",
    "#           #  ..  ###. . . . . . . . #     ...X         X",
    "#     @      ....      . . .!. . . .X.      ...X      X  X",
    "#           #......###. . . . .X. . . #     ...XXXXXXXX  X",
    "#           #..  ..# . . . .X. . . . .#    XXXXX         X",
    "#           #..  ..#. . . . . . .X. . #    X         X   X",
    "#  f        #......# . . . . x . .!. X#    X     X       X",
    "#           #....  #. . . . . . x . . #    X             X",
    "############################################B#XXXXXXXXXXXX",
    "# o : :O: : o : :O:#      ^   V       #                  #",
    "#: : : : : : : : : #>QX  >Q  >Q  Q<   #                  #",
    "# : : : : : : : : :# VX   ^   V       #                  #",
    "#: : : : : : : : : #QV   >Q  >Q  Q<   #                  #",
    "# : : : : : : : : :#^V    ^   V       #                  #",
    "#:X: : + : :X: : +  ^V   >Q  >Q  Q<   B         k        #",
    "# : : : : : : : : :#^V    ^   V       #                  #",
    "#: : : : : : : : : #^Q   >Q  >Q  Q<   #                  #",
    "# : : : : : : : : :#^ X   ^   V       #              h   #",
    "#: : : : : : : : : #Q<X  >Q  >Q  Q<   #                  #",
    "# o : :O: : o : :O:#      ^   V       #                  #",
    "##########################################################"})

wo:shuffleOxyd()
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
