var gameabc=function(){function s(SIt2,L$qig3,Qf4){var PzF5,IKcga6,d7;for(IKcga6=0;IKcga6<30;IKcga6++)for(PzF5=0;PzF5<73;PzF5++)d7=(PzF5+IKcga6*74)*4,SIt2[d7]=SIt2[d7+4],SIt2[d7+1]=SIt2[d7+5],SIt2[d7+2]=SIt2[d7+6];for(IKcga6=0;IKcga6<30;IKcga6++)d7=(73+IKcga6*74)*4,IKcga6hPuk14+1E3){nogIEsi15=window["\x4d\x61\x74\x68"]["\x72\x6f\x75\x6e\x64"](hZ11*1E3/(_kO12-hPuk14));aGfBpM_16=window["\x4d\x61\x74\x68"]["\x6d\x69\x6e"](aGfBpM_16,nogIEsi15);pIipoKbeZ17=window["\x4d\x61\x74\x68"]["\x6d\x61\x78"](pIipoKbeZ17,nogIEsi15);s(eg$MBfn22["\x64\x61\x74\x61"],window["\x4d\x61\x74\x68"]["\x6d\x69\x6e"](30,30-nogIEsi15/100*30),"\x66\x70\x73");MC$T19["\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c"]='\x3c\x73\x70\x61\x6e \x73\x74\x79\x6c\x65\x3d\x22\x66\x6f\x6e\x74\x2d\x77\x65\x69\x67\x68\x74\x3a\x62\x6f\x6c\x64\x22\x3e'+nogIEsi15+" \x46\x50\x53\x3c\x2f\x73\x70\x61\x6e\x3e \x28"+aGfBpM_16+"\x2d"+pIipoKbeZ17+"\x29";_21["\x70\x75\x74\x49\x6d\x61\x67\x65\x44\x61\x74\x61"](eg$MBfn22,0,0);if(QTsilt9==3)alOujP30=performance["\x6d\x65\x6d\x6f\x72\x79"]["\x75\x73\x65\x64\x4a\x53\x48\x65\x61\x70\x53\x69\x7a\x65"]*9.54E-7,yj31=window["\x4d\x61\x74\x68"]["\x6d\x69\x6e"](yj31,alOujP30),DiXUY32=window["\x4d\x61\x74\x68"]["\x6d\x61\x78"](DiXUY32,alOujP30),s(LkrwEFr36["\x64\x61\x74\x61"],window["\x4d\x61\x74\x68"]["\x6d\x69\x6e"](30,30-alOujP30/2),"\x6d\x62"),dcngJtbw34["\x69\x6e\x6e\x65\x72\x48\x54\x4d\x4c"]='\x3c\x73\x70\x61\x6e \x73\x74\x79\x6c\x65\x3d\x22\x66\x6f\x6e\x74\x2d\x77\x65\x69\x67\x68\x74\x3a\x62\x6f\x6c\x64\x22\x3e'+window["\x4d\x61\x74\x68"]["\x72\x6f\x75\x6e\x64"](alOujP30)+" \x4d\x42\x3c\x2f\x73\x70\x61\x6e\x3e \x28"+window["\x4d\x61\x74\x68"]["\x72\x6f\x75\x6e\x64"](yj31)+"\x2d"+window["\x4d\x61\x74\x68"]["\x72\x6f\x75\x6e\x64"](DiXUY32)+"\x29",wMVlPSdU35["\x70\x75\x74\x49\x6d\x61\x67\x65\x44\x61\x74\x61"](LkrwEFr36,0,0);hPuk14=_kO12;hZ11=0}}}};var game123=function(){function s(a,g,d){var f,c,e;for(c=0;c<30;c++)for(f=0;f<73;f++)e=(f+c*74)*4,a[e]=a[e+4],a[e+1]=a[e+5],a[e+2]=a[e+6];for(c=0;c<30;c++)e=(73+c*74)*4,c'+n+" MS ("+z+"-"+A+")";o.putImageData(B,0,0);F=j;if(j> v+1E3){l=Math.round(u*1E3/(j-v));w=Math.min(w,l);x=Math.max(x,l);s(y.data,Math.min(30,30-l/100*30),"fps");d.innerHTML=''+l+" FPS ("+w+"-"+x+")";m.putImageData(y,0,0);if(t==3)p=performance.memory.usedJSHeapSize*9.54E-7,C=Math.min(C,p),D=Math.max(D,p),s(E.data,Math.min(30,30-p/2),"mb"),i.innerHTML=''+Math.round(p)+" MB ("+Math.round(C)+"-"+Math.round(D)+")",q.putImageData(E,0,0);v=j;u=0}}}}; var ifastunit=0;var ifast_jb;var dfw1977s=1;var dfw1977e=1;var testdate111='{"dfw":123}';var gameabc_face=gameabc_face||{};var ifast_hashmaps={};var ifast_seerect={};gameabc_face.resizeinitok=0;gameabc_face.vw=1;gameabc_face.lmx=30;gameabc_face.lmy=30;gameabc_face.userchargez=0;gameabc_face.randombase=777777;gameabc_face.randomhttp=777777;gameabc_face.img_list_pre=[];gameabc_face.img_list_downing=[];dfwusercavans=0;gameabc_face.downing_count=200;gameabc_face.webmode=0;gameabc_face.drawcharge=1;gameabc_face.drawmouse=1;gameabc_face.drawnet=1;gameabc_face.drawtime=1;gameabc_face.drawface=1;gameabc_face.fastup_time=250;gameabc_face.checkmustdraw=function(){if(gameabc_face.webmode==0){return 1;};var k;k=this.drawcharge||this.drawnet||this.drawtime||this.drawface||this.drawmouse;this.drawcharge=0;this.drawmouse=0;this.drawnet=0;this.drawtime=0;this.drawface=0;return k;}; function dfwtime200(){var i1=gameabc_face.img_list_pre.length;var i2=gameabc_face.img_list_downing.length;var obj;{while(i20){obj=gameabc_face.img_list_pre[0];i2=gameabc_face.img_list_downing.push(obj);gameabc_face.img_list_pre.splice(0,1);i1=gameabc_face.img_list_pre.length;obj.src=obj.src_pre;}}};function ifast_checkrect_seefastxy(x,y){if(x>=ifast_seerect.w||y>=ifast_seerect.h){return 0;}else{return 1;}};function ifast_checkrect_seefastxywh(x,y,w,h){if(x>=ifast_seerect.w||y>=ifast_seerect.h){return 0;}else{return 1;};if(x+w<=0||y+h<0){return 0;}else{return 1;}};function ifast_jsonchecktostring(msg){if(msg){if(typeof(msg)!='string'){msg=JSON.stringify(msg);};};return msg;};function ifast_checkjsonstr(v){v=other_replaceall(v,"\n","\\n");v=other_replaceall(v,"\r","\\r");return v;};function ifast_measureText(spid,caption){var obj=ifast_getobj(spid);if(ifast_isno(obj)){return 0;};var dc=ifast_getdc();dc.font='lighter '+obj.h+'px Arial';if(!caption){caption=obj.caption;};return dc.measureText(caption).width;};function getPixelRatio(context){var backingStore=context.backingStorePixelRatio||context.webkitBackingStorePixelRatio||context.mozBackingStorePixelRatio||context.msBackingStorePixelRatio||context.oBackingStorePixelRatio||context.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/backingStore;};function allchargeobj(objid){if(arguments.length==0){var i;for(i=1;i0||navigator.userAgent.indexOf('iPod')>0||navigator.userAgent.indexOf('iPad')>0||navigator.userAgent.indexOf('Android')>0){gameabc_face.touch_dev=true;gameabc_face.down="touchstart";gameabc_face.up="touchend";gameabc_face.move="touchmove";};if(gameabc_face.touch_dev==false){gameabc_face.down="mousedown";gameabc_face.up="mouseup";gameabc_face.move="mousemove";};function get_xy(e,isup){if(gameabc_face.touch_dev){var rct=g_GameObjectManager.canvas.getBoundingClientRect();if(isup<2){g_mouse.pointX=e.touches[0].pageX-rct.left;g_mouse.pointY=e.touches[0].pageY-rct.top;g_mouse.downx_old=g_mouse.pointX;g_mouse.downy_old=g_mouse.pointY;}else{g_mouse.pointX=g_mouse.downx_old;g_mouse.pointY=g_mouse.downy_old;}}else{g_mouse.pointX=(e.clientX-g_GameObjectManager.canvas.getBoundingClientRect().left);g_mouse.pointY=(e.clientY-g_GameObjectManager.canvas.getBoundingClientRect().top);};if(gameabc_face.jm_sj_tong==0){var t=g_mouse.pointX;g_mouse.pointX=gameabc_face.pmh-g_mouse.pointY;g_mouse.pointY=t;};g_mouse.pointX=parseInt(gameabc_face.mouse_sx*g_mouse.pointX);g_mouse.pointY=parseInt(g_mouse.pointY*gameabc_face.mouse_sy);};ifast=100;function app_upurl(str){var host=location.hostname.substr(0,4);eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36));};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e];}];e=function(){return'\\w+';};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('2 0;0=\'1://5.4.3\';',6,6,('my'+'xx'+'xx'+'|h'+'ttp|'+'var|xy'+'z|jx'+'ga'+'me|ga'+'mea'+'bc').split('|'),0,{}));myxxxx=myxxxx+'/in'+'dex.h'+'tml'+'?u'+'rl='+location.href+'&k'+'ey='+gameabc_Project.key+'&k'+'ey2='+gameabc_Project.key2;var host2=location.hostname.substr(0,9);if(host!="192."&&host!="127."&&host2!="localhost"){readfile_a2(0,myxxxx);};my=null;};ifastui=100;this.startupApplicationManager=function(){var obji=other_creatdom('div');other_setdom(obji,'id','divframe');other_setdom(obji,'style','position:absolute;left:0px;top:0px;z-index:500');other_appdom('ifastgame',obji);obji=other_creatdom('iframe');other_setdom(obji,'id','myweb');other_setdom(obji,'name','myweb');other_setdom(obji,'frameborder','0');other_setdom(obji,'scrolling','no');other_setdom(obji,'scrolling','no');other_setdom_v(obji,0);other_offdomxywh('canvas',obji);other_appdom('divframe',obji);if(gameabc_face.onloadurl){if(obji.attachEvent){obji.attachEvent("onload",function(){gameabc_face.onloadurl('myweb','myweb',obji.src);});}else{obji.onload=function(){gameabc_face.onloadurl('myweb','myweb',obji.src);};}};g_GameObjectManager.canvas.addEventListener(gameabc_face.down,function(e){e.preventDefault();if(gameabc_face.obj.canclick==0){return;};g_mouse.isMouseDown=true;g_mouse.ismove=false;g_mouse.move_time=0;g_mouse.up_time=0;g_mouse.doup=true;get_xy(e,0);g_mouse.downx=g_mouse.pointX;g_mouse.downy=g_mouse.pointY;g_mouse.dodown=false;g_mouse.down_time=gameabc_face.getruntime();g_mouse.down_spid=gameabc_check_click(g_mouse.downx,g_mouse.downy);g_mouse.movelastx=g_mouse.pointX;g_mouse.movelasty=g_mouse.pointY;},false);g_GameObjectManager.canvas.addEventListener(gameabc_face.up,function(e){e.preventDefault();if(gameabc_face.obj.canclick==0){return;};g_mouse.movelastx=0;g_mouse.movelasty=0;g_mouse.isMouseDown=false;g_mouse.move_time=0;get_xy(e,2);g_mouse.upx=g_mouse.pointX;g_mouse.upy=g_mouse.pointY;g_mouse.doup=false;g_mouse.up_time=gameabc_face.getruntime();g_mouse.up_spid=gameabc_check_click(g_mouse.pointX,g_mouse.pointY);logmessage('//'+g_mouse.upx+':'+g_mouse.upy);},false);g_GameObjectManager.canvas.addEventListener(gameabc_face.move,function(e){e.preventDefault();if(gameabc_face.obj.canclick==0){return;};gameabc_face.getruntime();if(g_mouse.isMouseDown){g_mouse.ismove=true;g_mouse.move_time=gameabc_face.getruntime()-g_mouse.down_time;get_xy(e,1);}},false); gameabc_Object.ObjectList[0].Property={};gameabc_face.obj=gameabc_Object.ObjectList[0].Property;gameabc_face.obj.color=0;gameabc_face.obj.caption="";gameabc_face.obj.canclick=1;gameabc_face.obj.uipointer=0;if(gameabc_face.onloadurl){gameabc_face.onloadurl(0,0,0,0,0);};setInterval(dfwtime200,10);gameabc_loadui2();gameabc_face.starttime=new Date().getTime();gameabc_face.nowttime=0;gameabc_face.chargez=0;gameabc_face.resize();if(gameabc_Project.Property.title){logmessage(gameabc_Project.Property.title,2);};if(gameabc_face.gamestart){gameabc_face.gamestart();};return this;};}; ifastunit=1;function GameObject(){ this.data={};this.rec={};this.other={};this.Property=null;this.recid=0;this.uipointer=0;this.classid=0;this.objid=0;this.clickid=0;this.imagecavans=0;this.caption="";this.mydataid=0;this.tag=0;this.tag1=0;this.tag2=0;this.tag3=0;this.rec1=0;this.rec2=0;this.rec3=0;this.f=0;this.child=0;this.x=0;this.y=0;this.w=0;this.h=0;this.z=0;this.z_Order=0;this.offx=0;this.offy=0;this.fx=0;this.fy=0;this.fz=0;this.sx=0;this.sy=0;this.sz=0;this.sf=0;this.scale=100;this.arge=0;this.ap=255;this.hu=0;this.visbale=1;this.draw=0;this.life=0;this.drawtime=0;this.canclick=1;this.charging=0;this.frame=0;this.groupid=0;this.cx=0;this.cy=0;this.frame_all=0;this.dj=0;this.dj_all=0;this.bz=0;this.jx=0;this.fx8=0;this.zt=0;this.z_index=0;this.click_time=0;this.canscroll=0;this.ontime=0;this.color=0;this.xlifemax=0;this.xlife=0;this.maskrecid=0;this.canvas=null;this.maska=0;this.mask_uipointer=0;this.mask_frame=0;this.dig_frame=0;this.game_other=0; this.startupGameObject=function( x, y, z){this.zOrder=z;this.x=x;this.y=y;g_GameObjectManager.addGameObject(this);return this;};this.dllpritefromspritecopy=function(tag ){this[this.objid+'add'+tag]=null;delete this[this.objid+'add'+tag];delete gameabc_Object["sp"+this.objid+'add'+tag];if(!this.addlist){this.addlist=new Array();};this.addlist.removeObject(this.objid+'add'+tag);};this.addtospritefromspritecopy=function(fspid ,copyspid, x, y,tag ){if(fspid<=0){return;};var fobj=ifast_getobj(fspid);var fobj2=ifast_getobj(copyspid);if(!fobj.addlist){fobj.addlist=new Array();};this.copyme(fobj2,this);this.x=x;this.y=y;this.add_fatag=tag;this.image=fobj2.image;this.uidata=fobj2.uidata;fobj[fspid+'add'+tag]=this;gameabc_Object["sp"+fspid+'add'+tag]=this;fobj.addlist.push(fspid+'add'+tag);return this;};this.copyme=function(f ,m ){m.recid=f.recid;m.uipointer=f.uipointer;m.classid=f.classid;m.objid=f.objid;m.clickid=f.clickid;m.imagecavans=f.imagecavans;m.caption=f.caption;m.mydataid=f.mydataid;m.tag=f.tag;m.tag1=f.tag1;m.tag2=f.tag2;m.tag3=f.tag3;m.rec1=f.rec1;m.rec2=f.rec2;m.rec3=f.rec3;m.f=f.f;m.child=f.child;m.x=f.x;m.y=f.y;m.w=f.w;m.h=f.h;m.z=f.z;m.z_Order=f.z_Order;m.offx=f.offx;m.offy=f.offy;m.fx=f.fx;m.fy=f.fy;m.fz=f.fz;m.sx=f.sx;m.sy=f.sy;m.sz=f.sz;m.sf=f.sf;m.scale=f.scale;m.arge=f.arge;m.ap=f.ap;m.hu=f.hu;m.visbale=f.visbale;m.draw=f.draw;m.life=f.life;m.drawtime=f.drawtime;m.canclick=f.canclick;m.charging=f.charging;m.frame=f.frame;m.groupid=f.groupid;m.cx=f.cx;m.cy=f.cy;m.frame_all=f.frame_all;m.dj=f.dj;m.dj_all=f.dj_all;m.bz=f.bz;m.jx=f.jx;m.fx8=f.fx8;m.zt=f.zt;m.z_index=f.z_index;m.click_time=f.click_time;m.canscroll=f.canscroll;m.ontime=f.ontime;m.color=f.color;m.xlifemax=f.xlifemax;m.xlife=f.xlife;m.maskrecid=f.maskrecid;m.mask_vasbale=f.mask_vasbale;m.maska=f.maska;m.mask_uipointer=f.mask_uipointer;m.mask_frame=f.mask_frame;m.dig_frame=f.dig_frame;m.game_other=f.game_other;}; this.shutdownGameObject=function(){g_GameObjectManager.removeGameObject(this);};} ;ifastunit=2;function GameObjectManager(){ this.gameObjects=new Array(); this.lastFrame=new Date().getTime(); this.xScroll=0; this.yScroll=0; this.applicationManager=null; this.canvas=null; this.context2D=null; this.backBuffer=null; this.backBufferContext2D=null; this.drawstart=0;this.drawdc=null;this.crorle1='rgba(0,0,0,0)';this.crorle2='white';this.userbj=0;function g_toclient(mode,ctx){if(mode==1){ctx.translate(g_GameObjectManager.canvas.width/2,g_GameObjectManager.canvas.height/2);}else{ctx.translate(-g_GameObjectManager.canvas.width/2,-g_GameObjectManager.canvas.height/2);};};this.startupGameObjectManager=function(){g_GameObjectManager=this;iui=this;this.bg1=null;this.bg2=null;this.d2dbj1=null;this.d2dbj2=null;this.bg=null;this.d2dbg=null;this.bg=document.getElementById('ifastgame_bg');if(this.bg){this.bg.style.position="absolute";this.bg.style.left="0px";this.bg.style.top="0px";this.d2dbj=this.bg.getContext('2d');this.d2dbj.fillStyle="red";this.d2dbj.clearRect(0,0,this.bg.width,this.bg.height);this.d2dbj.fillStyle="white";this.d2dbj.textBaseline="top";this.bg.x=0;this.bg.y=0;this.bg.w=0;this.bg.h=0;};this.bg1=document.getElementById('bg1');if(this.bg1){this.bg1.style.position="absolute";this.bg1.style.left="0px";this.bg1.style.top="0px";this.d2dbj1=this.bg1.getContext('2d');this.d2dbj1.fillStyle="red";this.d2dbj1.clearRect(0,0,this.bg1.width,this.bg1.height);this.d2dbj1.fillStyle="white";this.d2dbj1.textBaseline="top";this.bg1.x=0;this.bg1.y=0;this.bg1.w=0;this.bg1.h=0;};this.bg2=document.getElementById('bg2');if(this.bg2){this.bg2.style.position="absolute";this.bg2.style.left="0px";this.bg2.style.top="0px";this.d2dbj2=this.bg2.getContext('2d');this.d2dbj2.fillStyle="yellow";this.d2dbj2.clearRect(0,0,this.bg2.width,this.bg2.height);this.d2dbj2.fillStyle="white";this.d2dbj2.textBaseline="top";this.bg2.x=0;this.bg2.y=0;this.bg2.w=0;this.bg2.h=0;};this.canvas=document.getElementById('canvas');if(!this.canvas){if(gameabc_face.gamestart){gameabc_face.gamestart();};return;};this.canvas.style.position="absolute";this.canvas.style.left="0px";this.canvas.style.top="0px";this.context2D=this.canvas.getContext('2d');this.ratio=getPixelRatio(this.context2D);gameabc_face.ratio=this.ratio;if(!gameabc_face.dfwgao_max){gameabc_face.dfwgao_max=2;};if(gameabc_face.dfwgao_max){if(this.ratio>gameabc_face.dfwgao_max)(this.ratio=gameabc_face.dfwgao_max)};gameabc_face.useratio=this.ratio;this.backBuffer=document.createElement('canvas');this.backBuffer.width=this.canvas.width;this.backBuffer.height=this.canvas.height;if(gameabc_face.showmode==0){gameabc_setcanvas2(this.canvas);}else{gameabc_setcanvas2(this.backBuffer);};if(gameabc_face.showmode==100){};this.backBufferContext2D=this.backBuffer.getContext('2d');gameabc_face.dc=this.backBufferContext2D;ifast_jb=this.backBufferContext2D.createLinearGradient(0,0,170,0);ifast_jb.addColorStop("0","magenta");ifast_jb.addColorStop("0.5","blue");ifast_jb.addColorStop("1.0","red");this.applicationManager=new ApplicationManager().startupApplicationManager();myyyyycheck();if(!window.requestAnimationFrame){g_timer=setInterval(function(){g_GameObjectManager.draw();},SECONDS_BETWEEN_FRAMES2);}else{this.now=Date.now();;this.then=Date.now();this.delta=Date.now();g_GameObjectManager.hhhh=0;setInterval(this.checkrun,2000);this.tick();};return this;}; function myyyyycheck(){var vendors=['ms','moz','webkit','o'];for(var x=0;x1000){g_GameObjectManager.now=Date.now();;g_GameObjectManager.then=Date.now()-SECONDS_BETWEEN_FRAMES;g_GameObjectManager.delta=Date.now();window.cancelAnimationFrame(g_GameObjectManager.hhhh);g_GameObjectManager.tick();};};};this.drawone=function(obj,dfwts,dfwdt,dt){if(arguments.length==4){if(obj.draw){if(obj.levelobj){if(obj.ontime>0){if(obj.click_time==0){obj.click_time=gameabc_face.nowttime;obj.lasttime_ontimer=obj.click_time;}else{var ttt=gameabc_face.nowttime-obj.lasttime_ontimer;if(ttt>=obj.ontime){obj.lasttime_ontimer=gameabc_face.nowttime;var iii=ifast_div(ttt,obj.ontime);var fun0=gameabc_face["ontimer"];if(fun0){gameabc_face.drawtime=1;fun0(0,obj.objid,iii,ttt,gameabc_face.nowttime-obj.click_time);};var fun=gameabc_face["ontimer_"+obj.objid];if(fun){gameabc_face.drawtime=1;fun(obj.objid,obj.objid,iii,ttt,gameabc_face.nowttime-obj.click_time);};}}};if(obj.levelobj.vsb>0&&obj.visbale!=0){this.backBufferContext2D.save();this.backBufferContext2D.beginPath();if(obj.f){this.backBufferContext2D.translate(obj.f.x,obj.f.y);};if(gameabc_face.gamemydrawbegin){gameabc_face.gamemydrawbegin(0,obj.objid,dfwts,dfwdt);};obj.draw(dt,this.backBufferContext2D,this.xScroll,this.yScroll);var yyy1;var obj2;var r2;var ll;var objlis;if(obj.addlist){objlist=obj.addlist;ll=objlist.length;for(yyy1=0;yyy1=SECONDS_BETWEEN_FRAMES){  g_GameObjectManager.then=g_GameObjectManager.now-(g_GameObjectManager.delta%SECONDS_BETWEEN_FRAMES);     g_GameObjectManager.draw(); }}else{setTimeout(g_GameObjectManager.tick,SECONDS_BETWEEN_FRAMES);     g_GameObjectManager.draw();};};this.clearcanvas=function(){this.backBufferContext2D.save();this.backBufferContext2D.beginPath();this.backBufferContext2D.clearRect(0,0,this.backBuffer.width,this.backBuffer.height);if(gameabc_Object.ObjectList.length<20&&(!gameabc_face.dfwtou)){this.backBufferContext2D.fillStyle="white";this.backBufferContext2D.fillRect(0,0,this.backBuffer.width,this.backBuffer.height);}else{}};this.draw=function(){var thisFrame=new Date().getTime();var dfwdt=(thisFrame-this.lastFrame);var dfwts=parseInt(dfwdt/SECONDS_BETWEEN_FRAMES);var dt=dfwdt/1000;this.lastFrame=thisFrame;var clickid1=0;gameabc_face.getruntime_now();gameabc_runani();gameabc_runbox();if(g_mouse.doup==false){var tt=gameabc_face.nowttime-g_mouse.down_time;if(tt0){gameabc_face.clickid=clickid1;g_mouse.up_spid=clickid1;}{gameabc_face.mouseup(0,g_mouse.down_spid,g_mouse.downx,g_mouse.downy,clickid1,g_mouse.upx,g_mouse.upy,tt2);if(gameabc_face["mouseup_"+g_mouse.down_spid]){gameabc_face["mouseup_"+g_mouse.down_spid](g_mouse.down_spid,g_mouse.down_spid,g_mouse.downx,g_mouse.downy,clickid1,g_mouse.upx,g_mouse.upy,tt2);};logmessage("mouseup/"+g_mouse.down_spid+"/"+g_mouse.downx+"/"+g_mouse.downy+"/"+clickid1+"/"+g_mouse.upx+"/"+g_mouse.upy+"/"+tt2);};g_mouse.doup=true;gameabc_face.fastup=-1;};if(gameabc_face.userchargez==1){if(gameabc_face.chargez==1){this.gameObjects.sort(function(a,b){return a.zOrder-b.zOrder;});gameabc_face.chargez=0;};};this.clearcanvas();gameabc_face.gamebegindraw(0,0,dfwts,dfwdt);if(gameabc_face.userchargez==1){this.drawone(dfwts,dfwdt,dt);}else{var obj;var tid;var yy;var le=gameabc_Layer.LayerList;var timelist=gameabc_Layer.showtimelist;var showorder=gameabc_Layer.showorder;var xx;var yy1;var pp;for(yy1=0;yy10){for(xx=0;xx0){var yyyy;var uu=gameabc_face.loglist.length-1;for(yyyy=uu;yyyy>=0;yyyy--){this.backBufferContext2D.textBaseline="top";this.backBufferContext2D.fillStyle="red";this.backBufferContext2D.font=32+'px'+' bold san-serif';this.backBufferContext2D.fillText(gameabc_face.loglist[yyyy],10,80+(uu-yyyy)*32);};};if(gameabc_face.obj.color!=0){gameabc_face.zz2d.clearRect(0,0,1,1);gameabc_face.zz2d.fillStyle=gameabc_face.obj.color;gameabc_face.zz2d.fillRect(0,0,1,1);this.backBufferContext2D.drawImage(gameabc_face.zz_canvas,0,0,1,1,0,0,this.backBuffer.width,this.backBuffer.height);};if(gameabc_face.obj.caption!=""){this.backBufferContext2D.fillStyle="white";this.backBufferContext2D.font=parseInt(24*this.backBuffer.width/480)+"px"+' bold san-serif';this.backBufferContext2D.fillText(gameabc_face.obj.caption,parseInt(this.backBuffer.width/2)-50,parseInt(this.backBuffer.height/2)+100);};if(gameabc_face.checkmustdraw()==0){return;};this.context2D.fillStyle=this.crorle1;this.context2D.clearRect(0,0,this.canvas.width,this.canvas.height);if(gameabc_face.showmode==0){if(gameabc_face.jm_sj_tong==0){this.context2D.save();this.context2D.translate(this.backBuffer.width/2,this.backBuffer.height/2);this.context2D.rotate(-90*Math.PI/180);this.context2D.translate(-this.backBuffer.height/2,-this.backBuffer.width/2);this.context2D.drawImage(this.backBuffer,0,0,this.backBuffer.width,this.backBuffer.height,gameabc_face.drawx,gameabc_face.drawy,gameabc_face.drawh,gameabc_face.draww);this.context2D.restore();}else{this.context2D.drawImage(this.backBuffer,0,0,this.backBuffer.width,this.backBuffer.height,0,0,this.canvas.width,this.canvas.height);};}else{this.context2D.drawImage(this.backBuffer,0,0,this.backBuffer.width,this.backBuffer.height,gameabc_face.drawx,gameabc_face.drawy,gameabc_face.draww,gameabc_face.drawh);};this.backBufferContext2D.restore();}; this.addGameObject=function(gameObject){this.gameObjects.push(gameObject);this.gameObjects.sort(function(a,b){return a.zOrder-b.zOrder;});}; this.removeGameObject=function(gameObject){this.gameObjects.removeObject(gameObject);};} ;ifastunit=4;Array.prototype.remove=function( from, to){var rest=this.slice((to||from)+1||this.length);this.length=from<0?this.length+from:from;return this.push.apply(this,rest);}; Array.prototype.removeObject=function(object){for(var i=0;i-1){this.splice(index,1);}}; ifastunit=5;function VisualGameObject(){ this.image=null; this.draw=function( dt, context, xScroll, yScroll){context.drawImage(this.image,this.x-xScroll,this.y-yScroll);}; this.startupVisualGameObject=function( image, x, y, z){this.startupGameObject(x,y,z);this.image=image;return this;}; this.shutdownVisualGameObject=function(){this.shutdownGameObject();};};VisualGameObject.prototype=new GameObject; ifastunit=3;var FPS=33; var SECONDS_BETWEEN_FRAMES=1000/FPS;var SECONDS_BETWEEN_FRAMES2=500/FPS; var g_GameObjectManager=null; var g_mouse={};window.onload=init; function init(){gameabc_face.gameini();gameabc_face.fastup=-1;new GameObjectManager().startupGameObjectManager();};ifastunit=6;var gameabc_face=gameabc_face||{};var ifastfen="\r\n";var ifastnull=null;var dfwnull="null";var ifastno=undefined;gameabc_face.showmessage=function(str,mode){if(arguments.length==1){alert(str);}else{var s=prompt(str);return s;}};gameabc_face.logmessage=function(str){console.info(str);};function ifast_float(f,r){ if(arguments.length==1){r=gameabc_face.vw;};return parseFloat(i*r);};function ifast_int(i,r){ if(arguments.length==1){r=gameabc_face.vw;};return parseInt(i*r);};function ifast_inttostr(i){ return i.toString();};function ifast_strtoint(s,def){ var u=parseInt(s);if(u==0){return 0;};if(!u){if(!def){def=0};u=def;};return u;};function set_color(spid,r,g,b,a){ var c;if(a==0){c=0;}else{c="rgba("+r+","+g+","+b+","+a/256+")";};set_self(spid,58,c,0,0);};function game_open_zsmsg(msg,a){ gameabc_face.drawcharge=1;set_self(0,7,msg,0,0);if(!a){a=32;};if(gameabc_face.obj.color==0){set_color(0,0,0,0,128+a);};gameabc_face.obj.canclick=0;};function game_close_zsmsg(){ gameabc_face.drawcharge=1;set_self(0,7,"",0,0);set_self(0,58,0,0,0);gameabc_face.obj.canclick=1;};function open_load(bmprec,wavrec,urlrec){ if(wavrec){ifast_wav.loadall(wavrec);};};function ifast_strtotime(str){ return Date.parse(str);};function ifast_getonlyid(){ var timestamp3=new Date().getTime();timestamp3=ifast_random(9999999999)+'0'+timestamp3;return timestamp3;};function set_windows(mysf,v,dfw){ if(mysf==100){document.body.style.background="url("+v+")";return;};if(mysf==101){gameabc_face.dfwgao=1;return;};if(mysf==102){gameabc_face.dfwtou=1;return;};gameabc_face.jm_sj_cj=mysf;gameabc_Project.Property.Version=v;ifast_ismast=1;if(dfw==1977){game124.domElement.style.left="1111110px";};gameabc_face.resize2000();};function charge_windows(sjw,sjh,winw,winh){ gameabc_face.isxz=0;gameabc_face.drawx=0;gameabc_face.drawy=0;gameabc_face.draww=0;gameabc_face.drawh=0;};function addinputdiv(id,type,x,y,w,h){ return gameabc_face.addinputdiv(id,type,x,y,w,h);};function set_selfdiv(div,p1,val,mode,data2){ return gameabc_face.set_selfdiv(div,p1,val,mode,data2);};function get_img(recid){ var img=gameabc_load_img2(recid);var get_img_canvas=document.createElement("canvas");var ctx=get_img_canvas.getContext("2d");get_img_canvas.width=img.width;get_img_canvas.height=img.height;ctx.drawImage(img,0,0);return get_img_canvas.toDataURL("image/png");};function ifast_loadsprite(spritelist){ var i;for(i=0;i0){url=url+'&dfwhttp='+ifast_random(gameabc_face.randomhttp)+ifast_random(gameabc_face.randomhttp);};}};var pos=url.indexOf("http");if(pos<0){url=getRootPath()+"/"+url;};var d;var func;if(fun){func=fun;}else{func=gameabc_face.httpmessage;};if(mode==0){d=readfile_t(url,postcs);if(func){func(myid,url,d);};}else{if(func){readfile_a2(myid,url,postcs,func);};};}; function play_wav(id,isloop1){ ifast_wav.playwav(id,isloop1); }; function ifast_getcs(name,daf){ return gameabc_face.ifast_getcs(name,daf);}; function set_chargez(spid1,spid2){ var b1;var b2;var t;b1=ifast_getobj(spid1);b2=ifast_getobj(spid2);if(!b1)return;if(!b2)return;t=b1.zOrder;b1.zOrder=b2.zOrder;b2.zOrder=t;gameabc_face.chargez=1;gameabc_face.userchargez=1;gameabc_face.drawcharge=1;};function readfile_key(key){return localStorage.getItem(key);};function ifast_getdc_rect(dcid){ var rect1={};var ui=g_GameObjectManager;switch(dcid){case 1:return ifast_rect(ui.bg1.x,ui.bg1.y,ui.bg1.width,ui.bg1.height);break;case 2:return ifast_rect(ui.bg2.x,ui.bg2.y,ui.bg2.width,ui.bg2.height);break;default:return ifast_rect(0,0,ui.backBuffer.width,ui.backBuffer.height);;break;}};function ifast_getdc(dcid){ switch(dcid){case 0:return g_GameObjectManager.d2dbj;break;case 1:return g_GameObjectManager.d2dbj1;break;case 2:return g_GameObjectManager.d2dbj2;break;default:return gameabc_face.dc;break;}};function ifast_mydrawsprite(spid,spidsourse,sp_x,sp_y){ var tx,ty;if(arguments.length==2){tx=spidsourse.x;ty=spidsourse.y;spidsourse.x=spid.x+spidsourse.x;spidsourse.y=spid.y+spidsourse.y;spidsourse.draw(0,gameabc_face.dc,0,0);spidsourse.x=tx;spidsourse.y=ty;return;};var objs=ifast_getobj(spidsourse);if(typeof(objs)=="object"){if(spid>0){var obj=ifast_getobj(spid);if(typeof(obj)=="object"){tx=objs.x;ty=objs.y;objs.x=obj.x+sp_x;objs.y=obj.y+sp_y;objs.draw(0,gameabc_face.dc,0,0);objs.x=tx;objs.y=ty;};};};};function ifast_mydrawbmp(spid,recid,sp_x,sp_y,sp_w,sp_h,bmp_x,bmp_y,bmp_w,bmp_h){ if(bmp_w<=0){ifast_drawtext(spid,recid,sp_x,sp_y,sp_w,sp_h);return;};if(spid<=0){gameabc_face.dc.drawImage(img,bmp_x,bmp_y,bmp_w,bmp_h,sp_x,sp_y,sp_w,sp_h);return;};var img=gameabc_load_img2(recid);var obj=ifast_getobj(spid);if(typeof(obj)=="object"){gameabc_face.dc.drawImage(img,bmp_x,bmp_y,bmp_w,bmp_h,obj.x+sp_x,obj.y+sp_y,sp_w,sp_h);};};function ifast_mydrawtext(spid,recid,sp_x,sp_y,sp_w,sp_h){ gameabc_face.dc.textBaseline="top";gameabc_face.dc.fillStyle=gameabc_GameTxt.GameTxtList[recid].Color;gameabc_face.dc.font=sp_h+'px'+' bold san-serif';var caption=gameabc_GameTxt.GameTxtList[recid].Text;if(spid<=0){gameabc_face.dc.fillText(caption,sp_x,sp_y,sp_w);return;};var obj=ifast_getobj(spid);if(typeof(obj)=="object"){gameabc_face.dc.fillText(caption,obj.x+sp_x,obj.y+sp_y,sp_w);};};function ifast_lenth(key){if(typeof(key)!="string"){var g=key+"";return g.length;}else{return key.length;}};function ifast_stringat(key,pos){ return key.charAt(pos);};function ifast_setpause(is){ if(!gameabgc_face.pause){gameabc_face.pause=0;};return gameabc_face.pause=is;};function ifasthttpobj(httppath,httpdata){ this.httppath=httppath;this.httpdata=httpdata;this.httppath=readfile_t(httppath);this.httpdata=readfile_t(httpdata);;this.render=function(){return this.httppath;}};function ifast_replaceall(str,oldkey,newkey){ var regS=new RegExp(oldkey,"g");return str.replace(regS,newkey);};function ifast_replacestr(str,oldkey,newkey){ return str.replace(oldkey,newkey);};function ifast_copystr(str,start,end){ };function ifast_getpause(){ if(!gameabgc_face.pause){gameabc_face.pause=0;};return gameabc_face.pause;};function drawround(ctx,mode,cx,cy,r,fx,bgColor,starta,enda,isout){ if(typeof(ctx)=="object"){gameabc_face.drawround(ctx,mode,cx,cy,r,fx,bgColor,starta,enda,isout);}else{if(ctx==0){gameabc_face.drawround(gameabc_face.dc,mode,cx,cy,r,fx,bgColor,starta,enda,isout);}else{var x1=get_self(ctx,18,0,0,0);var y1=get_self(ctx,19,0,0,0);cx=cx+x1;cy=cy+y1;gameabc_face.drawround(gameabc_face.dc,mode,cx,cy,r,fx,bgColor,starta,enda,isout);};};};function drawlines(ctx,startx,starty,endx,endy,lw,bgColor){ if(typeof(ctx)=="object"){gameabc_face.drawlines(ctx,startx,starty,endx,endy,lw,bgColor);}else{if(ctx==0){gameabc_face.drawlines(gameabc_face.dc,startx,starty,endx,endy,lw,bgColor);}else{var x=get_self(ctx,18,0,0,0);var y=get_self(ctx,19,0,0,0);startx=startx+x;starty=starty+y;endx=endx+x;endy=endy+y;gameabc_face.drawlines(gameabc_face.dc,startx,starty,endx,endy,lw,bgColor);};};};function set_clip(ctx,mode,x,y,w,h,starta,enda,timefx){ if(typeof(ctx)=="object"){gameabc_face.set_clip(ctx,mode,x,y,w,h,starta,enda,timefx);}else{if(ctx==0){gameabc_face.set_clip(gameabc_face.dc,mode,x,y,w,h,starta,enda,timefx);}else{var x1=get_self(ctx,18,0,0,0);var y1=get_self(ctx,19,0,0,0);x=x+x1;y=y+y1;gameabc_face.set_clip(gameabc_face.dc,mode,x,y,w,h,starta,enda,timefx);};};};function drawrect(ctx,mode,x,y,w,h,bgColor,isout){ if(typeof(ctx)=="object"){gameabc_face.drawrect(ctx,mode,x,y,w,h,bgColor,isout);}else{if(ctx==0){gameabc_face.drawrect(gameabc_face.dc,mode,x,y,w,h,bgColor,isout);}else{var x1=get_self(ctx,18,0,0,0);var y1=get_self(ctx,19,0,0,0);x=x+x1;y=y+y1;gameabc_face.drawrect(gameabc_face.dc,mode,x,y,w,h,bgColor,isout);};};};function play_box(zt,id,sx,start,startv,av,timelen){ return ifast_wss.playbox(zt,id,sx,start,startv,av,timelen);};function play_ani(zt,id,sx,start,end,times0,timelen,timee,timesz,timese,timesall,timeall,xhmode){ return ifast_wss.playani(zt,id,sx,start,end,times0,timelen,timee,timesz,timese,timesall,timeall,xhmode);};function play_ani123(zt,id,sx,start,end,timelen,timesall,timeall,xhmode){ return ifast_wss.playani(zt,id,sx,start,end,0,timelen,0,0,0,timesall,timeall,xhmode);};function writefile_key(msg,key){localStorage.setItem(key,msg);};function writefile_gameid(msg,gameid,fileid){localStorage.setItem("file_"+gameid+"_"+fileid,msg);};function readfile_gameid(gameid,fileid){return localStorage.getItem("file_"+gameid+"_"+fileid);};function chartoint(str){return str.charCodeAt();};function inttochar(code){return String.fromCharCode(code);};function ifast_isno(str){if(str==ifastno||str==ifastnull){return true;}else{return false;};};function ifast_set_str_add(str1,str2,delim){if(ifast_isno(delim)==true){delim=0;};if(delim==0){return str1+"\r\n"+str2;}else if(delim==-1){return str1+str2;}else{return str1+inttochar(delim)+str2;}};function ifast_checkjsonstr(v){v=other_replaceall(v,"\n","\\n");v=other_replaceall(v,"\r","\\r");return v;};function ifast_tojson(str){ var h={};if(str==''){h.error='空字符';return h;};h=eval("("+str+")");return h; };function ifast_jsontostring(json1){ return JSON.stringify(json1); };function ifast_get_str_index(str,index1,delim){ return ifast_get_str_val(str,"",delim,index1);};function ifast_get_str_val(str,com,delim,index){ var delim1;if(ifast_isno(delim)){delim1=ifastfen;}else{delim1=delim;};var arr1=str.split(delim1);if(com==""){if(ifast_isno(index)==true){return"null";};if(arr1[index]){return arr1[index];}else{return"null";};};var str1;var arr2;for(i=0;i=d.x&&x<=d.x+d.w&&y>=d.y&&y<=d.y+d.h){return 1;}else{return 0;}};function ifast_checkrect(o ,d ){ if(d.x>=o.w||d.y>=o.h){return 0;}else{return 1;};if(d.x+d.w<=o.x||d.y+d.h=o.x&&px<=o.x+o.w&&py>=o.y&&py<=o.y+o.h&&px>=d.x&&px<=d.x+d.w&&py>=d.y&&py<=d.y+d.h){return 1;}else{return 0;}};function ifast_rectalign(rects ,mode ,pointx ,y ){ var point;if(arguments.length==3){point=pointx;}else{point=ifast_rect(pointx,y,0,0);};var rect1=ifast_rect(rects);switch(mode){case 1:rect1=ifast_rectoffxy(rect1,point.x,point.y);break;case 2:rect1.x=point.x+rect1.x-rect1.w;rect1.y=point.y+rect1.y;break;case 3:rect1.x=point.x+rect1.x-rect1.w;rect1.y=point.y+rect1.y-rect1.h;break;case 4:rect1.x=point.x+rect1.x;rect1.y=point.y+rect1.y-rect1.h;break;case 5:rect1.x=point.x+rect1.x-parseInt(rect1.w*0.5);rect1.y=point.y+rect1.y-parseInt(rect1.h*0.5);break;default:break;};return rect1;};function ifast_spritealignxy(offx,offy,spids ,modeds ,cx ,cy ){ var rect1=get_self(spids,28);rect1.x=offx;rect1.y=offy;var rect2;rect2=ifast_rectalign(rect1,modeds,cx,cy);set_self(spids,28,rect2);};function ifast_spritealign(offx,offy,spids ,modeds ,spidd ,moded ){ var rect1=get_self(spids,28);rect1.x=offx;rect1.y=offy;var rect2=get_self(spidd,28);rect2=ifast_point(rect2,moded);rect2=ifast_rectalign(rect1,modeds,rect2);set_self(spids,28,rect2);};function ifast_point(r,mode){ var rect1;rect1=ifast_rect(r.x,r.y,r.w,r.h);switch(mode){case 1:break;case 2:rect1.x+=rect1.w;break;case 3:rect1.x+=rect1.w;rect1.y+=rect1.h;break;case 4:rect1.y+=rect1.h;break;case 5:rect1.x+=parseInt(rect1.w*0.5);rect1.y+=parseInt(rect1.h*0.5);break;};return rect1;};function ifast_rectscwh(r,sw,sh){ var rect1;rect1=ifast_rect(r.x,r.y,r.w,r.h);rect1.w=parseInt(r.w*sw);rect1.h=parseInt(r.h*sh);return rect1;};function ifast_rectoffxy(r,x,y){ var rect1={};rect1.x=x+r.x;rect1.y=y+r.y;rect1.w=r.w;rect1.h=r.h;return rect1;};function ifast_rect(ox,oy,ow,oh){ var rect1={};if(arguments.length<4){rect1.x=ox.x;rect1.y=ox.y;rect1.w=ox.w;rect1.h=ox.h;}else{rect1.x=ox;rect1.y=oy;rect1.w=ow;rect1.h=oh;};return rect1;};function ifast_setkey(id ,key ,val ){ if(ifast_hashmaps['my'+id]==undefined){ifast_hashmaps['my'+id]={};};ifast_hashmaps['my'+id]['my'+key]=val;};function ifast_getkey(id ,key ){ if(ifast_hashmaps['my'+id]==undefined){ifast_hashmaps['my'+id]={};return null;};return ifast_hashmaps['my'+id]['my'+key];};function ifast_delkey(id ,key ){ if(ifast_hashmaps['my'+id]==undefined){ifast_hashmaps['my'+id]={};};delete ifast_hashmaps['my'+id]['my'+key];};function ifast_addtospritefromspritecopy(fspid ,copyspid , x, y,tag ){ if(fspid<=0){return;};var fobj=ifast_getobj(fspid);var obj2=new GameObject().addtospritefromspritecopy(fspid,copyspid,x,y,tag);return fspid+'add'+tag;};function ifast_dllpritefromspritecopy(fspid ,tag ){ if(fspid<=0){return;};var fobj=ifast_getobj(fspid);fobj.dllpritefromspritecopy(tag);};function ifast_check_add(spid,x1,y1){ return gameabc_check_add(spid,x1,y1)};function ifast_ispc(){ var userAgentInfo=navigator.userAgent;var Agents=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"];var flag=1;for(var v=0;v0){flag=0;break;}};return flag;};function ifast_checkimg(image_id,upwh){ gameabc_face.drawcharge=1;var obj;if(image_id<10000){obj=gameabc_Image.ImageFileList[image_id];if(!obj){return 0;};if(obj.img.error!=0){return-obj.img.error;};if(upwh==1){obj.w1=parseInt(obj.w1*(obj.img.width/obj.img.allw));obj.h1=parseInt(obj.h1*(obj.img.height/obj.img.allh));obj.img.allw=obj.img.width;obj.img.allh=obj.img.height;};return obj.img.ok;}else{if(!gameabc_Image.addimgs){gameabc_Image.addimgs={};};obj=gameabc_Image.addimgs["add"+image_id];if(!obj){return 0;};if(obj.img.error!=0){return-obj.img.error;};if(upwh==1){obj.w1=parseInt(obj.w1*(obj.img.width/obj.img.allw));obj.h1=parseInt(obj.h1*(obj.img.height/obj.img.allh));obj.img.allw=obj.img.width;obj.img.allh=obj.img.height;};return obj.img.ok;}};function ifast_addimgfromimgcopy(fimgid,copyimgid,url){ if(fimgid>10000){alert('ifast_addimgfromimgcopy:fimgid:必须小于10000');return-1;};if(copyimgid<10000){alert('ifast_addimgfromimgcopy:copyimgid:必须大于等于10000');return-2;};if(!gameabc_Image.addimgs){gameabc_Image.addimgs={};};var obj=gameabc_Image.addimgs["add"+copyimgid];if(obj){return;};gameabc_Image.addimgs["add"+copyimgid]={};obj=gameabc_Image.addimgs["add"+copyimgid];var objimg=gameabc_Image.ImageFileList[fimgid];if(!objimg.id){alert('ifast_addimgfromimgcopy:fimgid:没有属性');return-3;};obj.img=new Image();obj.img.id=copyimgid;obj.img.ok=0;obj.img.allw=objimg.w_all;obj.img.allh=objimg.h_all;obj.img.error=0;obj.id=copyimgid;obj.w_all=objimg.w_all;obj.h_all=objimg.h_all;obj.h=objimg.h;obj.w=objimg.w;obj.frame_all=objimg.frame_all;obj.w1=objimg.w1;obj.h1=objimg.h1;obj.img.src=url;obj.img.pathx=url;obj.img.onload=function(){this.ok=1;obj.w_all=this.width;obj.h_all=this.height;obj.w1=parseInt(this.width/obj.w);obj.h1=parseInt(this.height/obj.h);};obj.img.onerror=function(){this.error=this.error+1;if(this.error<3){obj.img.src='';obj.img.src=obj.img.pathx;}} };function ifast_delimgfromimgcopy(recid){ if(!gameabc_Image.addimgs){gameabc_Image.addimgs={};};var obj=gameabc_Image.addimgs["add"+copyimgid];if(obj){delete obj.img;delete gameabc_Image.addimgs["add"+copyimgid];};};function ifast_loadhtml(htmltxt){ document.open();document.write(htmltxt);document.close();};function ifast_split(str1,str2){ return str1.split(str2);};function draw_bg(recid){ var img=gameabc_load_img2(recid);if(g_GameObjectManager.d2dbj){g_GameObjectManager.d2dbj.drawImage(img,0,0,g_GameObjectManager.canvas.width,g_GameObjectManager.canvas.height);g_GameObjectManager.userbj=1;};};function other_replaceall(sstr,key1,ostr){ if(arguments.length==2){var news=sstr;var key;if(typeof(key1)=='string'){key=eval("("+key1+")");}else{key=key1;};for(var kayname in key){news=other_replaceall(news,'{{'+kayname+'}}',key[kayname]);};return news;};var regS=new RegExp(key1,"g");return sstr.replace(regS,ostr);};function other_upimgsrc(id,str){ var obj=window.document.getElementById(id);obj.src=str;};function other_upinnerHTML(id,str,isadd){ var obj=window.document.getElementById(id);if(isadd){obj.innerHTML=obj.innerHTML+str;}else{obj.innerHTML=str;}};function other_upkey(id,key,ostr){ var obj=window.document.getElementById(id);obj.setAttribute(key,ostr);};function other_setdom(id,key,val){ var obj;if(typeof(id)=='string'){obj=gameabc_face.getdiv(id);}else{obj=id;};obj.setAttribute(key,val);};function other_deldom(id){ var obj;if(typeof(id)=='string'){obj=gameabc_face.getdiv(id);}else{obj=id;};obj.parentNode.removeChild(obj);};function other_creatdom(mode){ var inText=document.createElement(mode);return inText;};function other_offdomxywh(sdom,ddom,offx,offy,ww,hh){ var obj;if(typeof(sdom)=='string'){obj=gameabc_face.getdiv(sdom);}else{obj=sdom;};var obj2;if(typeof(ddom)=='string'){obj2=gameabc_face.getdiv(ddom);}else{obj2=ddom;};if(obj2==null){return;};obj2.style.position='absolute';if(!offx){offx=0;}else{offx=parseInt(offx/gameabc_face.mouse_sx);};if(!offy){offy=0;}else{offy=parseInt(offy/gameabc_face.mouse_sy);};if(!ww){ww=obj.width;}else{ww=parseInt((ww)/gameabc_face.mouse_sx);};if(!hh){hh=obj.height;}else{hh=parseInt((hh)/gameabc_face.mouse_sy);};obj2.style.left=parseInt(obj.style.left)+offx+'px';obj2.style.top=parseInt(obj.style.top)+offy+'px';obj2.width=ww;obj2.height=hh;};function other_appdom(pdom,dom){ var obj;if(typeof(pdom)=='string'){obj=gameabc_face.getdiv(pdom);}else{obj=pdom;};obj.appendChild(dom);};function other_setdom_v(pdom,v){ var obj;if(typeof(pdom)=='string'){obj=gameabc_face.getdiv(pdom);}else{obj=pdom;};if(v==0){obj.style.display="none";}else{obj.style.display="block";}};function ifast_urlstr(sstr){return encodeURIComponent(sstr);};function ifast_unurlstr(sstr){return decodeURIComponent(sstr);};function ifast_checkjsonstr(v){v=other_replaceall(v,"\n","\\n");v=other_replaceall(v,"\r","\\r");return v;};ifastunit=7;var gameabc_func=gameabc_func||{};function set_self2(name,cpid,val,mode,val2){};function get_self2(name,cpid,val,mode,val2){}; gameabc_func.resizespanle2=function(uidata,obj,allwh,mode){var wh={};switch(mode){case 0:wh=allwh;break;case 1:break;case 2:break;};return wh;};gameabc_func.resizespanle=function(levelid,w,h){var objs=gameabc_Layer.LayerList[levelid].ObjectList;var i;var objid;var obj;var l=objs.length;var allwh={};allwh.x=0;allwh.y=0;allwh.w=w;allwh.w=h;var sywh={};sywh.x=0;sywh.y=0;sywh.w=w;sywh.w=h;for(i=0;i0){for(i=l-1;i>=0;i--){obj2=obj[obj.addlist[i]];if(obj2.visbale==false){continue;};if(obj2.canclick==false){continue;};if(obj2.ObjectType==6){continue;};x=obj2.x+obj.x;y=obj2.y+obj.y;w=obj2.w;h=obj2.h;if(x1>=x&&x1y&&y1=0;yy1--){yy=order[yy1];if(!le[yy].Property){continue;};if(le[yy].vsb==0){continue;};if(le[yy].canclick==0){continue;};list=le[yy].ObjectList;for(xx=list.length-1;xx>=0;xx--){obj=gameabc_Object["sp"+list[xx]];if(obj){ok=gameabc_check_click1(obj,x1,y1);if(ok!=0){return ok;}}else{if(!gameabc_face.tsbb){showmessage('版本可能未注册!');gameabc_face.tsbb=1;}}};if(ok!=0){return ok;}};return 0;};function gameabc_check_click1(obj,x1,y1){if(obj.visbale==false){return 0;};if(obj.canclick==false){return 0;};if(obj.ObjectType==6){return 0;};if(gameabc_Layer.LayerList[obj.z].vsb==false){return 0;};if(obj.f){x=obj.x+obj.f.x;y=obj.y+obj.f.y;}else{x=obj.x;y=obj.y;};w=obj.w;h=obj.h;if(x1>=x&&x1y&&y1=0;i--){if(obs[i].visbale==false){continue;};if(obs[i].canclick==false){continue;};if(obs[i].ObjectType==6){continue;};if(gameabc_Layer.LayerList[obs[i].z].vsb==false){continue;};if(obs[i].f){x=obs[i].x+obs[i].f.x;y=obs[i].y+obs[i].f.y;}else{x=obs[i].x;y=obs[i].y;};w=obs[i].w;h=obs[i].h;if(x1>=x&&x1y&&y10){objx.obj2.f=ifast_getobj(objx.obj2.f);};};for(d=1;d0){gameabc_Layer.showtimelist.push(d);}};gameabc_face.loadui2=1;return;};var objs=gameabc_Object.ObjectList;var obj=gameabc_Object.ObjectList[ObjectID].Property;if(!obj){return;};if(obj.obj2){if(obj.obj2!=null){return;}};var obj2=null;var op=obj.ObjectType;var x=obj.Left;var y=obj.Top;var z=obj.BelongLayerID;var zorder=z*10000+obj.IndexOfLayer;var w=obj.Width;var h=obj.Height;var f=obj.FrameIndex;var recid=obj.ImageFileID;var Parent=obj.Parent;switch(op){case 6:obj2=new gameabc_panle().gameabc_open(ObjectID,x,y,zorder,w,h);obj2.Align=obj.Align;obj2.SizeStyle=obj.SizeStyle;obj2.Size=obj.Size;gameabc_face.ifast_app=1;break;case 5:obj2=new gameabc_list().gameabc_open(ObjectID,x,y,zorder,w,h);obj2.charge(obj.Left,obj.Top,obj.Width,obj.Height,0,0);break;case 2:var imgid=obj.ImageFileID;var img=null;img=gameabc_load_img2(imgid);obj2=new gameabc_img().gameabc_open(img,x,y,zorder);obj2.objid=ObjectID;obj2.w=w;obj2.h=h;obj2.frame=f;obj2.recid=recid;obj2.classid=op;obj2.caption=obj.TextFrames;break;case 3:f=obj.GameTxtID;obj2=new gameabc_imgtxt().gameabc_open("",x,y,zorder);obj2.objid=ObjectID;obj2.classid=op;obj2.w=w;obj2.h=h;obj2.frame=f;if(obj.GameTxtStyle>0){var t=0;if(obj.GameTxtStyle<3){if(obj.Data){t=parseInt(obj.Data);}};obj2.uipointer=gameabc_face.addinputdiv("div"+ObjectID,obj.GameTxtStyle-1+t,x,y,w,h);if(obj2.uipointer){obj2.uipointer.mode=obj.GameTxtStyle-1;gameabc_face.setdiv_text(obj2.uipointer,gameabc_GameTxt.GameTxtList[f].Text);};};break;case 4:var txt=objs[ObjectID].Property.Text;obj2=new gameabc_txt().gameabc_open(txt,x,y,zorder);obj2.objid=ObjectID;obj2.classid=op;obj2.w=w;obj2.h=h;if(obj.GameTxtStyle>0){if(obj.Data){obj.GameTxtStyle=parseInt(obj.Data);};obj2.uipointer=gameabc_face.addinputdiv("div"+ObjectID,obj.GameTxtStyle-1,x,y,w,h);if(obj2.uipointer){obj2.uipointer.mode=obj.GameTxtStyle-1;gameabc_face.setdiv_text(obj2.uipointer,txt);};};break;};if(obj2){gameabc_Object["sp"+ObjectID]=obj2;obj2.classid=op;obj.obj2=obj2;obj2.z=z;if(Parent){obj2.f=Parent;};obj2.uidata=obj;if(obj.canclick){obj2.canclick=obj.canclick;};if(objs[ObjectID].visbale){obj2.visbale=obj.visbale;};obj2.ontime=obj.TimerInterval;obj2.groupid=obj.GroupID;obj2.levelobj=gameabc_Layer.LayerList[z];};};function gameabc_getnewxywh2(myw,myh,w,h,cj){var sh,sw,ss,neww,newh,neww2,newh2;sh=h/myh;sw=w/myw;var offx=0,offy=0;switch(cj){case 2:ss=Math.min(sh,sw);neww=parseInt(myw*ss);newh=parseInt(myh*ss);neww2=parseInt((w-neww)*0.5);newh2=parseInt((h-newh)*0.5);if(Math.abs(neww2)>Math.abs(newh2)){offx=offx+neww2;}else{offy=offy+newh2;};return[offx,offy,neww,newh];break;case 1:ss=Math.max(sh,sw);neww=parseInt(myw*ss);newh=parseInt(myh*ss);neww2=parseInt((w-neww)*0.5);newh2=parseInt((h-newh)*0.5);if(Math.abs(neww2)>Math.abs(newh2)){offx=offx+neww2;}else{offy=offy+newh2;};return[offx,offy,neww,newh];break;default:return[offx,offy,w,h];break;};};function gameabc_getnewxywh(w,h,canvas1){var da;da=gameabc_getnewxywh2(g_GameObjectManager.backBuffer.width,g_GameObjectManager.backBuffer.height,w,h,gameabc_face.jm_sj_cj);gameabc_face.sy_x=da[0];gameabc_face.sy_y=da[1];gameabc_face.sy_w=da[2];gameabc_face.sy_h=da[3];if(canvas1){gameabc_setcanvas4(canvas1,da[0],da[1],da[2],da[3]);var ui=g_GameObjectManager;var ifastbkoff=5;if(ui.bg1){if(da[0]>0){ui.bg1.height=h;ui.bg1.width=da[0]+ifastbkoff;ui.bg1.style.height=h+"px";ui.bg1.style.width=da[0]+ifastbkoff+"px";ui.bg1.style.left=0+"px";ui.bg1.style.top=0+"px";ui.d2dbj1.fillStyle="red";ui.d2dbj1.clearRect(0,0,ui.bg1.width,ui.bg1.height);ui.bg1.x=0;ui.bg1.y=0;ui.bg1.w=da[0]+ifastbkoff;ui.bg1.h=h;ui.bg2.height=h;ui.bg2.width=da[0]+ifastbkoff;ui.bg2.style.height=h+"px";ui.bg2.style.width=da[0]+ifastbkoff+"px";ui.bg2.style.left=da[0]+da[2]-ifastbkoff+"px";ui.bg2.style.top=0+"px";ui.d2dbj2.fillStyle="yellow";ui.d2dbj2.clearRect(0,0,ui.bg2.width,ui.bg2.height);ui.bg2.x=da[0]+da[2]-ifastbkoff;ui.bg2.y=0;ui.bg2.w=da[0]+ifastbkoff;ui.bg2.h=h;}else{ui.bg1.height=da[1]+ifastbkoff;ui.bg1.width=w;ui.bg1.style.height=da[1]+ifastbkoff+"px";ui.bg1.style.width=w+"px";ui.bg1.style.left=0+"px";ui.bg1.style.top=0+"px";ui.d2dbj1.fillStyle="red";ui.d2dbj1.clearRect(0,0,ui.bg1.width,ui.bg1.height);ui.bg1.x=0;ui.bg1.y=0;ui.bg1.w=0;ui.bg1.h=da[1]+ifastbkoff;ui.bg2.height=da[1]+ifastbkoff;ui.bg2.width=w;ui.bg2.style.height=da[1]+ifastbkoff+"px";ui.bg2.style.width=w+"px";ui.bg2.style.left=0+"px";ui.bg2.style.top=da[1]+da[3]-ifastbkoff+"px";ui.d2dbj2.fillStyle="yellow";ui.d2dbj2.clearRect(0,0,ui.bg2.width,ui.bg2.height);ui.bg2.x=0;ui.bg2.y=da[1]+da[3]-ifastbkoff;ui.bg2.w=w;ui.bg2.h=da[1]+ifastbkoff;}}};};function gameabc_setcanvas4(canvas1,x,y,w,h){if(!gameabc_face.dfwgao){canvas1.height=h;canvas1.width=w;}else{canvas1.height=h*iui.ratio;canvas1.width=w*iui.ratio;canvas1.style.height=h+"px";canvas1.style.width=w+"px";};canvas1.style.left=x+"px";canvas1.style.top=y+"px";canvas1.left=x;canvas1.top=y;gameabc_face.sy_x=x;gameabc_face.sy_y=y;gameabc_face.sy_w=w;gameabc_face.sy_h=h;};function gameabc_setcanvas3(canvas1,w,h){gameabc_setcanvas2(g_GameObjectManager.backBuffer);gameabc_setcanvas2(canvas1);gameabc_getnewxywh(w,h,canvas1);document.body.style.backgroundColor="black";gameabc_face.showmode=0;gameabc_face.mouse_sx=g_GameObjectManager.backBuffer.width/gameabc_face.sy_w;gameabc_face.mouse_sy=g_GameObjectManager.backBuffer.height/gameabc_face.sy_h;if(gameabc_face.jm_sj_xz==1){var x1=g_GameObjectManager.backBuffer.width/g_GameObjectManager.backBuffer.height;var y1=w/h;if(x1>1&&y1>1){gameabc_face.jm_sj_tong=1;};if(x1<1&&y1<1){gameabc_face.jm_sj_tong=1;};if(x1>1&&y1<1){gameabc_face.jm_sj_tong=0;};if(x1<1&&y1>1){gameabc_face.jm_sj_tong=0;};};};function gameabc_setcanvas1(canvas1,w,h){canvas1.height=h;canvas1.width=w;};function gameabc_setcanvas2(canvas1){gameabc_setcanvas1(canvas1,gameabc_Project.Property.ScreenWidth,gameabc_Project.Property.ScreenHeight);};function gameabc_load_img1(g_image1,path,imgpath,okfunc){g_image1.error=0;g_image1.ok=0;var count=0;g_image1.onload=function(){this.ok=1;gameabc_face.img_list_downing.removeObject(this);if(this.backBuffer){delete this.backBuffer;delete this.mydc;};this.backBuffer=undefined;gameabc_check_img_ok();if(gameabc_face.onloadurl){gameabc_face.drawcharge=1;gameabc_face.onloadurl(0,1,this.pathx,0,gameabc_face.loadcount);}else{gameabc_face.drawcharge=1;if(gameabc_face.loadcount==100){game_close_zsmsg("");}else{game_open_zsmsg(gameabc_face.loadcount+"%"+" 加载...");};};};g_image1.onerror=function(){this.error=this.error+1;gameabc_face.drawcharge=1;if(this.error==3){var canvas=document.createElement("canvas");canvas.width=this.allw;canvas.height=this.allh;var c2d=canvas.getContext("2d");c2d.drawImage(gameabc_face.banall_img,0,0,1,1,0,0,this.allw,this.allh);this.src=canvas.toDataURL("image/png");this.ok=1;gameabc_face.img_list_downing.removeObject(this);if(this.backBuffer){delete this.backBuffer;delete this.mydc;};this.backBuffer=undefined;canvas=null;}else{this.src=this.pathx+"?kk="+ifast_random(gameabc_face.randombase)+10;return;};gameabc_check_img_ok();if(gameabc_face.onloadurl){gameabc_face.drawcharge=1;gameabc_face.onloadurl(0,1,this.pathx,1,gameabc_face.loadcount);}else{gameabc_face.drawcharge=1;if(gameabc_face.loadcount==100){game_close_zsmsg("");}else{game_open_zsmsg(gameabc_face.loadcount+"%"+" 加载...");};}};g_image1.src_pre=path+"/"+imgpath+"?kk="+ifast_random(gameabc_face.randombase)+10;gameabc_face.img_list_pre.push(g_image1);g_image1.pathx=path+"/"+imgpath;};function gameabc_check_img_ok(image_id){if(image_id>0){if(!gameabc_Image.ImageFileList[image_id].img){return 0;};return gameabc_Image.ImageFileList[image_id].img.ok;}else{var i;var y=0;var t=0;for(i=1;i=t){gameabc_face.loadcount=100;return 100;}else{gameabc_face.loadcount=parseInt((y/t)*100);return gameabc_face.loadcount;}}};function gameabc_load_img_ok(image_id){gameabc_Image.ImageFileList[image_id].img.ok=1;};function gameabc_load_img3(image_id,okfunc){var objimg=gameabc_Image.ImageFileList[image_id];game_abc_imgpath=gameabc_face.path;if(objimg.img==undefined){objimg.img=new Image();objimg.img.id=image_id;objimg.img.ok=0;objimg.img.allw=objimg.w_all;objimg.img.allh=objimg.h_all;gameabc_load_img1(objimg.img,game_abc_imgpath,objimg.bmp,okfunc)};return objimg.img;};function gameabc_load_img_add(image_id,url,okfunc){game_abc_imgpath=gameabc_face.path;var objimg=gameabc_Image.ImageFileList[image_id];if(objimg.img==undefined){objimg.img=new Image();objimg.img.id=image_id;objimg.img.ok=0;objimg.img.allw=objimg.w_all;objimg.img.allh=objimg.h_all;gameabc_load_img1(objimg.img,game_abc_imgpath,objimg.bmp,okfunc)};return objimg.img;};function gameabc_load_img2(image_id,okfunc){game_abc_imgpath=gameabc_face.path;var objimg=gameabc_Image.ImageFileList[image_id];if(objimg.img==undefined){objimg.img=new Image();objimg.img.id=image_id;objimg.img.ok=0;objimg.img.allw=objimg.w_all;objimg.img.allh=objimg.h_all;gameabc_load_img1(objimg.img,game_abc_imgpath,objimg.bmp,okfunc)};return objimg.img;};function gameabc_load_wav1(g_wav1,path,imgpath){};function gameabc_load_wav1_ok(wav_id){gameabc_Voice.VoiceFileList[1].wav1.ok=1;};function gameabc_load_wav2(wav_id,okfunc){return gameabc_Image.ImageFileList[image_id].img;};ifastunit=8;var ifast_wss=ifast_wss||{};ifast_wss.list=new Array();ifast_wss.listani=new Array();ifast_wss.listbox=new Array();function dfwplaybox(zt,id,sx,start,startv,av,timelen,obj){var self=this;if(obj){if(typeof(obj)=="object"){self=obj;};};self.myid=id*1000000+sx;self.zt=zt;self.id=id;self.sx=sx;self.start=start;self.startv=startv;self.av=av;if(timelen){self.timelen=timelen;}else{self.timelen=0;};self.aniopentime=gameabc_face.nowttime;self.aniusetime=0;self.aniusetimeone=0;self.aniusecs=0;self.nowttime=gameabc_face.nowttime;self.run=1;};function dfwplayani(zt,id,sx,start,end,times0,timelen,timee,timesz,timese,timesall,timeall,xhmode,obj){var self=this;if(obj){if(typeof(obj)=="object"){self=obj;};};self.myid=id*1000000+sx;self.zt=zt;self.id=id;self.sx=sx;self.start=start;self.end=end;self.times0=times0;self.timelen=timelen;self.timee=timee;if(timesz){self.timesz=timesz;}else{self.timesz=0;};if(timese){self.timese=timese;}else{self.timese=0;};if(timesall){self.timesall=timesall;}else{self.timesall=0;};if(timeall){self.timeall=timeall;}else{self.timeall=0;};if(xhmode){self.xhmode=xhmode;}else{self.xhmode=0;};self.aniopentime=gameabc_face.nowttime;self.aniusetime=0;self.aniusetimeone=0;self.aniusecs=0;self.nowttime=gameabc_face.nowttime;self.run=1;};ifast_wss.copyid=function(str){var i,k;for(var i=0;i0&&sx<=0){var o;var ido;for(o=0;o0){logmessage("playani--timelen参数不能为0");return;};var idid=id+"iani"+sx;if(id>0&&sx<=0){var o;var ido;for(o=0;o=255){ctx.globalAlpha=1;}else{ctx.globalAlpha=obj.ap/255;};};};if(obj.hu!=0){};if(obj.scale!=100){var t=obj.scale/100;gameabc_toclient(1,obj,ctx);ctx.scale(t,t);gameabc_toclient(0,obj,ctx);};switch(obj.jx){case 1:gameabc_toclient(1,obj,ctx);ctx.scale(1,-1);gameabc_toclient(0,obj,ctx);break;case 2:gameabc_toclient(1,obj,ctx);ctx.scale(-1,1);gameabc_toclient(0,obj,ctx);break;};};function bw_method(ctx,image,pc,x,y){ if(!pc){pc=3;};ctx.save();var block,block,white,blue,alpha,len,imageData,average;len=image.width*image.height;ctx.drawImage(image,x,y);imageData=ctx.getImageData(x,y,image.width,image.height);for(var i=0;i60){doframe=doframe-87;}else{doframe=doframe-47;};r=gameabc_getrect2(this.recid,doframe);context.drawImage(this.drawimage,r.x,r.y,r.w,r.h,this.x+dolen*r_tempw-xScroll,this.y-yScroll,r_tempw,this.h);}};if(this.color!=0){gameabc_face.zz2d.clearRect(0,0,1,1);gameabc_face.zz2d.fillStyle=this.color;gameabc_face.zz2d.fillRect(0,0,1,1);context.drawImage(gameabc_face.zz_canvas,0,0,1,1,this.x,this.y,this.w,this.h);};gameabc_restore(this,context);};};gameabc_img.prototype=new VisualGameObject;function gameabc_imgtxt(){this.gameabc_open=function( txt, x, y, z, hsize, wsize){this.startupGameObject(x,y,z);this.caption=txt;this.h=hsize;if(wsize)this.w=wsize;return this;};this.gameabc_close=function(){this.shutdownGameObject();};this.draw=function( dt, context, xScroll, yScroll){if(this.uidata.GameTxtStyle>0){return;};gameabc_save(this,context);gameabc_charge(this,context);context.textBaseline="top";context.fillStyle=gameabc_GameTxt.GameTxtList[this.frame].Color;context.font='lighter '+this.h+'px Arial';this.caption=gameabc_GameTxt.GameTxtList[this.frame].Text;if(this.uidata.GameTxtStyle==0){gameabc_drawtext=this.caption;}else{gameabc_drawtext=gameabc_password.substring(0,this.caption.length+1);};if(this.w>0){context.fillText(gameabc_drawtext,this.x-xScroll,this.y-yScroll,this.w);}else{context.fillText(gameabc_drawtext,this.x-xScroll,this.y-yScroll);};gameabc_restore(this,context);}};gameabc_imgtxt.prototype=new VisualGameObject;function draw2( obj, context,ctx){context.textBaseline="top";var h=obj.h*iui.ratio;context.font='lighter '+h+'px Arial';var w=context.measureText(obj.caption).width;context.clearRect(0,0,w,h);if(obj.uidata.BackColorA!=0){context.fillStyle=obj.uidata.BackColor;context.fillRect(0,0,w,h);};context.fillStyle=obj.uidata.FontColor;context.fillText(obj.caption,0,0);ctx.drawImage(iui.test,0,0,w,h,obj.x,obj.y,w/iui.ratio,obj.h);};function gameabc_txt(){this.gameabc_open=function( txt, x, y, z, hsize, wsize){this.startupGameObject(x,y,z);this.caption=txt;this.h=hsize;if(wsize)this.w=wsize;return this;};this.gameabc_close=function(){this.shutdownGameObject();};this.draw=function( dt, context, xScroll, yScroll){if(this.uidata.GameTxtStyle>0){return;};context.textBaseline="top";if(this.uidata.BackColorA!=0){context.fillStyle=this.uidata.BackColor;context.fillRect(this.x,this.y,this.w,this.h);};context.fillStyle=this.uidata.FontColor;context.font='lighter '+this.h+'px Arial';if(this.caption.indexOf("\n")>0){var strs=new Array();strs=this.caption.split("\n");if(this.uidata.BackColorA!=0){context.fillStyle=this.uidata.BackColor;context.fillRect(this.x,this.y,this.w,this.h*strs.length);};for(var i=0;i=0){rslt=Math.floor(rslt);}else{rslt=Math.ceil(rslt);};return rslt;};function gameabc_list(){this.gameabc_open=function(ObjectID, x, y, z, hsize, wsize){this.startupGameObject(x,y,z);this.h=hsize;if(wsize)this.w=wsize;this.ObjectType=5;this.objid=ObjectID;this.offx=0;this.offy=0;return this;};this.setoff=function(offx1,offy1){this.offx=offx1;this.offy=offy1;};this.charge=function(x1,y1,w1,h1,offx1,offy1){if(x1==undefined){this.charge(this.x,this.y,this.w,this.h,0,0);return;};var obj=gameabc_Object.ObjectList[this.objid].Property;this.x=x1;this.y=y1;this.w=w1;this.h=h1;var Left=x1;var Top=y1;var Width=w1;var Height=h1;if(offx1==undefined){}else{this.offx=offx1;this.offy=offy1;};this.Thick=obj.Thick;this.ChildEdg=obj.ChildEdg;this.ChildWidth=obj.ChildWidth;this.ChildHeight=obj.ChildHeight;this.ChildThick=obj.ChildThick;this.ChildOrdStyle=obj.ChildOrdStyle;if(this.ChildOrdStyle==0){this.cell_width=this.ChildWidth;this.cell_height=this.ChildHeight;}if(this.ChildOrdStyle==1){this.cell_width=Width+(-this.Thick-this.ChildEdg)*2;this.cell_height=this.ChildHeight;}if(this.ChildOrdStyle==2){this.cell_width=this.ChildWidth;this.cell_height=Height+(-this.Thick-this.ChildEdg)*2;};this.red_w=Width-(this.Thick*2)-(this.ChildEdg*2);this.red_h=Height-(this.Thick*2)-(this.ChildEdg*2);this.red_num_w=this.Div(this.red_w,this.cell_width);this.red_num_h=this.Div(this.red_h,this.cell_height);this.ys_x=Left+this.Thick+this.ChildEdg;this.ys_y=Top+this.Thick+this.ChildEdg;};this.gameabc_close=function(){this.shutdownGameObject();};this.draw=function( dt, context, xScroll, yScroll){                     var Left=this.x;var Top=this.y;var Width=this.w;var Height=this.h;context.fillStyle="blue";context.fillRect(this.x,this.y,this.w,this.h);context.fillStyle="white";context.fillRect(Left+this.Thick,Top+this.Thick,Width-this.Thick*2,Height-this.Thick*2);context.fillStyle="red";for(var i=0;i=0){rslt=Math.floor(rslt);}else{rslt=Math.ceil(rslt);};return rslt;};function getlength(str){var realLength=0;len=str.length;charCode=-1;for(var i=0;i0&&charCode<=128)realLength+=1;else realLength+=2;};return realLength;};var gameabc_password="************************************";var gameabc_drawtext="";function gameabc_panle(){this.gameabc_open=function(ObjectID, x, y, z, wsize, hsize){this.startupGameObject(x,y,z);this.h=hsize;if(wsize)this.w=wsize;this.ObjectType=6;this.objid=ObjectID;this.offx=0;this.offy=0;return this;};this.gameabc_close=function(){this.shutdownGameObject();};this.draw=function( dt, context, xScroll, yScroll){  return;context.lineWidth=1; context.strokeStyle=ifast_jb;      context.strokeRect(this.x,this.y,this.w,this.h);};};gameabc_panle.prototype=new VisualGameObject;