11月3日_补昨天的日志_By糖糖

11月3日_补昨天的日志_By糖糖

昨天都忘记写日志了。。继续道歉。。我可爱的玛丽医生~~昨天终于可以正常的消去了~~开心~~不过哦~我的显示和事件处理不好~~猫说要把addEventListener绑定。。。今天要把下面那段混乱的东西搞好~~加油

public function onTimer(event:TimerEvent):void {
   
   if (judge) {
    judge=judgepill.pilljudge();
    stage.focus=this;
    addEventListener(KeyboardEvent.KEY_DOWN,onKeyDown);
    remove();
    DrawPill();//每次只画药丸掉落的动画
    } else {     
    putIntoMap();    
    judgeMap=new stJudgeMap(myMap);
    removeall();
    Draw();//画的是有remove状态的~~
    judgeMap.stAround();
    judgeMap.deleteremove();        
    judgeMap.pilldown();
    pillmove=new stPillmovetwo  ;
    judgepill=new stJudgePill(myMap,pillmove);
    judge=judgepill.pilljudge();
    
    removeall();
    Draw();
    DrawPill();
    
   }
  }

你可能感兴趣的:(11月3日_补昨天的日志_By糖糖)