jimmytang

积分:217
上传文件:1
下载次数:24
注册日期:2017-07-12 00:28:17

上传列表
HMTL5斗地主.rar - SlicedBitmap=function(a){casual.DisplayObject.call(this);this.name=NameUtil.createUniqueName("SlicedBitmap");this.image=a;this.slices=[];this.pos=[]};casual.inherit(SlicedBitmap,casual.DisplayObject);SlicedBitmap.prototype.addSlice=function(a,b,c){this.pos.push([b||0,c||0]);this.slices.push(a)};SlicedBitmap.prototype.clear=function(){this.slices.length=0;this.pos.length=0}; SlicedBitmap.prototype.render=function(a){for(var b=0;b<this.slices.length;b++){var c=this.slices[b];a.drawImage(this.image,c[0],c[1],c[2],c[3],this.pos[b][0],this.pos[b][1],c[2],c[3])}};ImageLoader=function(a){casual.EventDispatcher.call(this);this.resources=a;this.images=[];this._loaded=0};casual.inherit(ImageLoader,casual.EventDispatcher);ImageLoader.load=function(a,b){(new ImageLoader(a,b)).load()};ImageLoader.prototype.load=function(){if(this._loaded>this.resources.length-1)this.dispatchEvent({type:"complete",target:this,params:this.images});else{var a=new,2017-07-12 00:31:48,下载1次

近期下载

收藏