protected override void Initialize()
{
base.Initialize();
// Create a render target to use for rendering trails for the ball and paddles
TrailBuffer = new RenderTarget2D(
Graphics.GraphicsDevice,
Graphics.GraphicsDevice.Viewport.Width / TrailScale,
Graphics.GraphicsDevice.Viewport.Height / TrailScale,
false, SurfaceFormat.Color, DepthFormat.None, 0,
RenderTargetUsage.PreserveContents
);
Playfield = new Playfield {
Bounds = new Bounds(new Vector2(-32, 24), new Vector2(Graphics.PreferredBackBufferWidth + 32, Graphics.PreferredBackBufferHeight - 24))
};
ResetPlayfield(0);
}