function main(){this.version="2.7.3";this.useCompress=false;this.bgmRemote=false;this.bgmRemoteRoot="https://h5mota.com/music/";this.isCompetition=false;this.savePages=1000;this.dom={body:document.body,gameGroup:document.getElementById("gameGroup"),mainTips:document.getElementById("mainTips"),musicBtn:document.getElementById("musicBtn"),startPanel:document.getElementById("startPanel"),startTop:document.getElementById("startTop"),startTopProgressBar:document.getElementById("startTopProgressBar"),startTopProgress:document.getElementById("startTopProgress"),startTopLoadTips:document.getElementById("startTopLoadTips"),startBackground:document.getElementById("startBackground"),startLogo:document.getElementById("startLogo"),startButtonGroup:document.getElementById("startButtonGroup"),floorMsgGroup:document.getElementById("floorMsgGroup"),logoLabel:document.getElementById("logoLabel"),versionLabel:document.getElementById("versionLabel"),floorNameLabel:document.getElementById("floorNameLabel"),statusBar:document.getElementById("statusBar"),status:document.getElementsByClassName("status"),toolBar:document.getElementById("toolBar"),tools:document.getElementsByClassName("tools"),gameCanvas:document.getElementsByClassName("gameCanvas"),gif:document.getElementById("gif"),gif2:document.getElementById("gif2"),gameDraw:document.getElementById("gameDraw"),startButtons:document.getElementById("startButtons"),playGame:document.getElementById("playGame"),loadGame:document.getElementById("loadGame"),replayGame:document.getElementById("replayGame"),levelChooseButtons:document.getElementById("levelChooseButtons"),data:document.getElementById("data"),statusLabels:document.getElementsByClassName("statusLabel"),statusTexts:document.getElementsByClassName("statusText"),floorCol:document.getElementById("floorCol"),nameCol:document.getElementById("nameCol"),lvCol:document.getElementById("lvCol"),hpmaxCol:document.getElementById("hpmaxCol"),hpCol:document.getElementById("hpCol"),manaCol:document.getElementById("manaCol"),atkCol:document.getElementById("atkCol"),defCol:document.getElementById("defCol"),mdefCol:document.getElementById("mdefCol"),moneyCol:document.getElementById("moneyCol"),expCol:document.getElementById("expCol"),upCol:document.getElementById("upCol"),keyCol:document.getElementById("keyCol"),pzfCol:document.getElementById("pzfCol"),debuffCol:document.getElementById("debuffCol"),skillCol:document.getElementById("skillCol"),hard:document.getElementById("hard"),statusCanvas:document.getElementById("statusCanvas"),statusCanvasCtx:document.getElementById("statusCanvas").getContext("2d"),inputDiv:document.getElementById("inputDiv"),inputMessage:document.getElementById("inputMessage"),inputBox:document.getElementById("inputBox"),inputYes:document.getElementById("inputYes"),inputNo:document.getElementById("inputNo"),next:document.getElementById("next")};this.mode="play";this.loadList=["loader","control","utils","items","icons","maps","enemys","events","actions","data","ui","extensions","core"];this.pureData=["data","enemys","icons","maps","items","functions","events","plugins"];this.materials=["animates","enemys","items","npcs","terrains","enemy48","npc48","icons"];this.statusBar={image:{floor:document.getElementById("img-floor"),name:document.getElementById("img-name"),lv:document.getElementById("img-lv"),hpmax:document.getElementById("img-hpmax"),hp:document.getElementById("img-hp"),mana:document.getElementById("img-mana"),atk:document.getElementById("img-atk"),def:document.getElementById("img-def"),mdef:document.getElementById("img-mdef"),money:document.getElementById("img-money"),exp:document.getElementById("img-exp"),up:document.getElementById("img-up"),skill:document.getElementById("img-skill"),book:document.getElementById("img-book"),fly:document.getElementById("img-fly"),toolbox:document.getElementById("img-toolbox"),keyboard:document.getElementById("img-keyboard"),shop:document.getElementById("img-shop"),save:document.getElementById("img-save"),load:document.getElementById("img-load"),settings:document.getElementById("img-settings"),btn1:document.getElementById("img-btn1"),btn2:document.getElementById("img-btn2"),btn3:document.getElementById("img-btn3"),btn4:document.getElementById("img-btn4"),btn5:document.getElementById("img-btn5"),btn6:document.getElementById("img-btn6"),btn7:document.getElementById("img-btn7"),btn8:document.getElementById("img-btn8")},icons:{floor:0,name:null,lv:1,hpmax:2,hp:3,atk:4,def:5,mdef:6,money:7,exp:8,up:9,book:10,fly:11,toolbox:12,keyboard:13,shop:14,save:15,load:16,settings:17,play:18,pause:19,stop:20,speedDown:21,speedUp:22,rewind:23,equipbox:24,mana:25,skill:26,btn1:27,btn2:28,btn3:29,btn4:30,btn5:31,btn6:32,btn7:33,btn8:34},floor:document.getElementById("floor"),name:document.getElementById("name"),lv:document.getElementById("lv"),hpmax:document.getElementById("hpmax"),hp:document.getElementById("hp"),mana:document.getElementById("mana"),atk:document.getElementById("atk"),def:document.getElementById("def"),mdef:document.getElementById("mdef"),money:document.getElementById("money"),exp:document.getElementById("exp"),up:document.getElementById("up"),skill:document.getElementById("skill"),yellowKey:document.getElementById("yellowKey"),blueKey:document.getElementById("blueKey"),redKey:document.getElementById("redKey"),greenKey:document.getElementById("greenKey"),poison:document.getElementById("poison"),weak:document.getElementById("weak"),curse:document.getElementById("curse"),pickaxe:document.getElementById("pickaxe"),bomb:document.getElementById("bomb"),fly:document.getElementById("fly"),hard:document.getElementById("hard")};this.floors={};this.canvas={};this.__VERSION__="2.7.3";this.__VERSION_CODE__=258}main.prototype.init=function(b,c){for(var a=0;a