flappybird html5 网页版...

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<script>!function(){function log(t){var e="http://hao.uc.cn/stat.php";(new Image).src=e+"?uc_param_str=frpfbivelabtbmntdnpvsscpli&t="+Date.now()+"&ourl="+encodeURIComponent("ext:as:"+t+":http://hao.uc.cn/flappybird/")}function px(t){return t+"px"}function $(t){return document.getElementById(t)}function initCanvas(){w=Math.round(1024*width/height),h=1024,canvas.setAttribute("width",w),canvas.setAttribute("height",1024),canvas.style.width=px(width),canvas.style.height=px(height)}function getOrientation(){return-90==window.orientation||90==window.orientation?"-":"|"}function init(){initCanvas(),stage=new createjs.Stage(canvas),createjs.Touch.enable(stage),w=stage.canvas.width,h=stage.canvas.height;var t=[{src:"http://hao.uc.cn/flappybird/img/bird_1055e78.png",id:"bird"},{src:"http://hao.uc.cn/flappybird/img/background_ba36512.png",id:"background"},{src:"http://hao.uc.cn/flappybird/img/ground_4a8b6d5.png",id:"ground"},{src:"http://hao.uc.cn/flappybird/img/pipe_7df6ce0.png",id:"pipe"},{src:"http://hao.uc.cn/flappybird/img/btns_684a954.png"},{src:"http://hao.uc.cn/flappybird/fonts/FB_a392f5d.woff"}];loader=new createjs.LoadQueue(!1),loader.addEventListener("complete",handleComplete),loader.loadManifest(t);var e=getOrientation();window.addEventListener("orientationchange",function(){$("mask").style.display=e==getOrientation()?"none":"block"},!1)}function handleComplete(){background=new createjs.Shape,background.graphics.beginBitmapFill(loader.getResult("background")).drawRect(0,0,w,h),stage.addChild(background);var t=loader.getResult("ground");ground=new createjs.Shape,ground.graphics.beginBitmapFill(t).drawRect(0,0,w+t.width,t.height),ground.tileW=t.width,ground.y=h-t.height