public override void LoadContent(ContentManager contentManager, GraphicsDevice graphicsDevice) { base.LoadContent(contentManager, graphicsDevice); sprFill = new SprFill(txrFillRed, new Vector2(Shri.Instance.Window.ClientBounds.Width / 2, Shri.Instance.Window.ClientBounds.Height / 2), new Circle(new Vector2(Shri.Instance.Window.ClientBounds.Width / 2, Shri.Instance.Window.ClientBounds.Height / 2), (txrPlayerBlue.Width / 2)), Color.White, new Vector2(txrFillBlue.Width / 2, txrFillBlue.Height / 2), Color.Red) { Scale = new Vector2(0.1f, 0.1f) }; sprFill.Circle.Radius = sprFill.Circle.Radius * sprFill.Scale.X; }
public override void LoadContent(ContentManager contentManager, GraphicsDevice graphicsDevice) { base.LoadContent(contentManager, graphicsDevice); sprFillLeft = new SprFill(txrFillRed, new Vector2(Shri.Instance.Window.ClientBounds.Width / 4, Shri.Instance.Window.ClientBounds.Height - (Shri.Instance.Window.ClientBounds.Height / 3)), new Circle(new Vector2(Shri.Instance.Window.ClientBounds.Width / 2, Shri.Instance.Window.ClientBounds.Height / 2), (txrPlayerBlue.Width / 2)), Color.White, new Vector2(txrFillBlue.Width / 2, txrFillBlue.Height / 2), Color.Blue) { Scale = new Vector2(0.15f, 0.15f) }; sprFillLeft.Circle.Radius *= sprFillLeft.Scale.X; sprFillMid = new SprFill(txrFillRed, new Vector2(Shri.Instance.Window.ClientBounds.Width / 2 - 20, Shri.Instance.Window.ClientBounds.Height / 4), new Circle(new Vector2(Shri.Instance.Window.ClientBounds.Width / 2, Shri.Instance.Window.ClientBounds.Height / 2), (txrPlayerBlue.Width / 2)), Color.White, new Vector2(txrFillBlue.Width / 2, txrFillBlue.Height / 2), Color.Yellow) { Scale = new Vector2(0.2f, 0.2f) }; sprFillMid.Circle.Radius *= sprFillMid.Scale.X; sprFillRight = new SprFill(txrFillRed, new Vector2((Shri.Instance.Window.ClientBounds.Width / 4) * 3, Shri.Instance.Window.ClientBounds.Height / 2), new Circle(new Vector2(Shri.Instance.Window.ClientBounds.Width / 2, Shri.Instance.Window.ClientBounds.Height / 2), (txrPlayerBlue.Width / 2)), Color.White, new Vector2(txrFillBlue.Width / 2, txrFillBlue.Height / 2), Color.Red) { Scale = new Vector2(0.2f, 0.2f) }; sprFillRight.Circle.Radius *= sprFillRight.Scale.X; }