Ejemplo n.º 1
0
        public void Update()
        {
            if (timer >= Constant.EffectSwordBeamCollisionTimer)
            {
                IsDestructable = true;
            }
            timer++;

            PositionNE = new Vector2(PositionNE.X + 1 * ItemConstants.ArrowSpeed, PositionNE.Y + (-1 * ItemConstants.ArrowSpeed));
            PositionNW = new Vector2(PositionNW.X + (-1 * ItemConstants.ArrowSpeed), PositionNW.Y + (-1 * ItemConstants.ArrowSpeed));
            PositionSE = new Vector2(PositionSE.X + (1 * ItemConstants.ArrowSpeed), PositionSE.Y + (1 * ItemConstants.ArrowSpeed));
            PositionSW = new Vector2(PositionSW.X + (-1 * ItemConstants.ArrowSpeed), PositionSW.Y + (1 * ItemConstants.ArrowSpeed));
            SpriteNE.Update();
            SpriteNW.Update();
            SpriteSE.Update();
            SpriteSW.Update();
        }