Ejemplo n.º 1
0
        public override void Animate(Single deltaTime)
        {
            _Smoke.Update(deltaTime);
            if (_Load == null)
            {
                return;
            }
            _Load.Position        = Position;
            _Load.Velocity        = Vector3.Empty;
            _Load.AngularVelocity = Vector3.Empty;
            _Load.Momentum        = Vector3.Empty;
            _Load.AngularMomentum = Vector3.Empty;
            var r    = Rotation;
            var step = deltaTime * _RotationSpeed;

            r = Rotation = new Vector3(
                r.X.AdvanceTo(step, _RotationF.X),
                r.Y.AdvanceTo(step, _RotationF.Y),
                r.Z.AdvanceTo(step, _RotationF.Z)
                );

            _ChargeSound.play(false);
            if (r == _RotationF)
            {
                _Shoot();
            }
        }
        public override void Animate(Single deltaTime)
        {
            _StarStorm.Update(deltaTime);
            var stepX = 0.2f * deltaTime;
            var stepY = 0.3f * deltaTime;

            if (_IsGrowing)
            {
                Scale = Scale.AdvanceX(stepX, MaxScale);
                Scale = Scale.AdvanceY(stepY, MaxScale);
            }
            else
            {
                Scale = Scale.AdvanceX(stepX, MinScale);
                Scale = Scale.AdvanceY(stepY, MinScale);
            }
            if (Scale.X == MinScale || Scale.X == MaxScale)
            {
                _IsGrowing = !_IsGrowing;
            }
        }
Ejemplo n.º 3
0
 public override void Animate(Single deltaTime)
 {
     _Arrows.KeepPlaying();
     _Arrows.Update(deltaTime);
     _RedArrows.Update(deltaTime);
 }