Ejemplo n.º 1
0
        /// <summary>
        /// We setup the bullet position to match the ship's center point, since we rotated the bullet we use the normal
        /// width instead of the rotated width because that's how it's saved.
        /// </summary>
        private void SetupPosition()
        {
            var bulletPosition = _shipInfo.BulletPosition(GetSize());

            Position = new Vector2(
                bulletPosition.x,
                bulletPosition.y
                );
        }