예제 #1
0
 public Koopa(Vector2 location)
 {
     EnemyPhysics = new EnemyPhysicalProperty(this);
     State        = new KoopaMoveState(EnemyPhysics.IsFacingLeft);
     Location     = location;
     deathTimer   = Util.Instance.Koopa_deathtimer;
     kickTimer    = Util.Instance.Koopa_kicktimer;
     reviveTimer  = Util.Instance.Koopa_revivetimer;
     shouldDraw   = true;
     isStomped    = false;
     isKicked     = false;
     Coefficient  = 1;
 }
예제 #2
0
        public void Revive()
        {
            bool tempFaceingDirection = EnemyPhysics.IsFacingLeft;

            State        = new KoopaMoveState(EnemyPhysics.IsFacingLeft);
            EnemyPhysics = new EnemyPhysicalProperty(this);
            EnemyPhysics.IsFacingLeft = tempFaceingDirection;
            deathTimer  = Util.Instance.Koopa_deathtimer_revive;
            kickTimer   = Util.Instance.Koopa_kicktimer_revive;
            reviveTimer = Util.Instance.Koopa_revivetimer_revive;
            isStomped   = false;
            isKicked    = false;
            Coefficient = 1;
        }
예제 #3
0
 public void SwitchDirection()
 {
     State = new KoopaMoveState(EnemyPhysics.IsFacingLeft);
 }