Beispiel #1
0
 public override void Action()
 {
     if (this.player.waittime == 11)
     {
         this.sound.PlaySE(SoundEffect.lance);
         PunchAttack punchAttack = new PunchAttack(this.sound, this.player.parent, this.player.position.X + this.UnionRebirth(this.player.union), this.player.position.Y, this.player.union, this.Power, 2, this.player.Element)
         {
             canCounter = false,
             breaking   = true
         };
         this.player.parent.attacks.Add(punchAttack);
     }
     if (this.player.waittime < 5)
     {
         this.player.animationpoint = new Point(0, 3);
     }
     else if (this.player.waittime < 17)
     {
         this.player.animationpoint = new Point((this.player.waittime - 5) / 3, 3);
     }
     else if (this.player.waittime < 37)
     {
         this.player.animationpoint = new Point(3, 3);
     }
     else if (this.player.waittime < 43)
     {
         this.player.animationpoint = new Point(4, 0);
     }
     else
     {
         this.End();
         this.player.animationpoint = new Point(0, 0);
         this.player.motion         = Player.PLAYERMOTION._neutral;
     }
 }
 public Giant()
 {
     movement   = new GroundMovement();
     attackType = new PunchAttack();
     level      = new LevelOne();
 }
 public Giant(ILevel level)
 {
     movement   = new GroundMovement();
     attackType = new PunchAttack();
     this.level = level;
 }