Ejemplo n.º 1
0
 /// <summary>
 /// UnloadContent will be called once per game and is the place to unload
 /// game-specific content.
 /// </summary>
 protected override void UnloadContent()
 {
     Content.Unload();
     virtualSizeRenderTarget.Dispose();
     fullSizeRenderTarget1.Dispose();
     bloomEffect.Unload();
     PixelTextures.Instance.Unload();
     DashedLine.Unload();
 }
Ejemplo n.º 2
0
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            Border.Draw(
                spriteBatch,
                borderRect,
                Color.White,
                BorderWidth
                );

            var dashedLineHeight = borderRect.Height - BorderWidth;

            DashedLine.Draw(spriteBatch, sidewalkLine1Position, dashedLineHeight, BorderWidth, Color.White);
            DashedLine.Draw(spriteBatch, sidewalkLine2Position, dashedLineHeight, BorderWidth, Color.White);
        }