Пример #1
0
        public override void Update(GameTime gameTime)
        {
            if (controler.Left() || padControler.Left())
            {
                this.Angle += (float)gameTime.ElapsedGameTime.TotalSeconds * rotationPerSecond;
            }

            if (controler.Right() || padControler.Right())
            {
                this.Angle -= (float)gameTime.ElapsedGameTime.TotalSeconds * rotationPerSecond;
            }

            if (controler.Up() || padControler.Up())
            {
                AddBehaviour(radiusDecreasing);
            }
            if (controler.Down() || padControler.Down())
            {
                AddBehaviour(radiusIncreasing);
            }

            if (controler.Action())
            {
                if (ShootingEnabled)
                {
                    KillItWihtFire();
                }
            }
            base.Update(gameTime);
        }