第二节 地鼠的显示、停留、消失、受击
Game.js
var Game=(function(_super){
function Game(){
Game.super(this);
this.mole=new Mole(this.normal,this.hit,22);
Laya.timer.loop(2000,this,this.onLoop);
}
//注册类
Laya.class(Game,"Game",_super);
var _proto=Game.prototype;
_proto.onLoop=function(){
this.mole.show();
}