|
@@ -259,23 +259,36 @@ export class GameController extends EventDispatcher{
|
|
|
}
|
|
|
if(this.currentSkill!=null){
|
|
|
this.currentSkill.Update(dt);
|
|
|
+ this.DrawingSkillState();
|
|
|
+ }else{
|
|
|
+ this.colorIndex=-1;
|
|
|
+ this.fightingMediator.DrawingBoard.clear(true);
|
|
|
}
|
|
|
this.runTime+=dt*1000;
|
|
|
this.weapon.Update(dt);
|
|
|
this.CheckMonster();
|
|
|
-
|
|
|
- this.DrawingSkillState();
|
|
|
}
|
|
|
|
|
|
- private colorIndex:number=0;
|
|
|
+ private colorIndex:number=-1;
|
|
|
+ private isDown:boolean;
|
|
|
private DrawingSkillState():void{
|
|
|
this.fightingMediator.DrawingBoard.clear(true);
|
|
|
+ if(this.colorIndex<0){
|
|
|
+ this.isDown=false;
|
|
|
+ }else if(this.colorIndex>255){
|
|
|
+ this.isDown=true;
|
|
|
+ }
|
|
|
+ if(this.isDown){
|
|
|
+ this.colorIndex-=10;
|
|
|
+ }else{
|
|
|
+ this.colorIndex+=10;
|
|
|
+ }
|
|
|
+ this.colorIndex=this.colorIndex%255;
|
|
|
+
|
|
|
let VisibleSize:Size=view.getVisibleSize();
|
|
|
this.fightingMediator.DrawingBoard.fillColor=new Color(255,0,0,this.colorIndex);
|
|
|
this.fightingMediator.DrawingBoard.rect(0,0,VisibleSize.width,VisibleSize.height);
|
|
|
this.fightingMediator.DrawingBoard.fill();
|
|
|
- this.colorIndex++;
|
|
|
- this.colorIndex=this.colorIndex%255;
|
|
|
}
|
|
|
|
|
|
/**
|