[摘要]this.name==="badPlan"){ ctx.save(); ctx.translate(this.left , this.top); ctx.rotate...
this.name==="badPlan"){
ctx.save();
ctx.translate(this.left , this.top);
ctx.rotate(this.rotateAngle);
this.painter.paint(this);
ctx.restore();
}else {
this.painter.paint(this);
}
}
},
update:function(time){
if(this.behaviors){
for(var i=0;i<this.behaviors.length;i++){
this.behaviors[i].execute(this,time);
}
}
}
}
// 精灵表绘制器
W.SpriteSheetPainter = function(cells , isloop , endCallback , spritesheet){
this.cells = cells
关键词:运用HTML5 Canvas制作一个容易的打飞机游戏