diff --git a/Game/Game1.cs b/Game/Game1.cs index 93f2f0b..8278dc5 100644 --- a/Game/Game1.cs +++ b/Game/Game1.cs @@ -23,7 +23,6 @@ public class Game1 : Game PreferredBackBufferWidth = 1024, PreferredBackBufferHeight = 576 }; - _spriteBatch = new SpriteBatch(GraphicsDevice); Content.RootDirectory = "Content"; IsMouseVisible = true; @@ -41,6 +40,8 @@ public class Game1 : Game protected override void LoadContent() { + _spriteBatch = new SpriteBatch(GraphicsDevice); + Sprite spriteBox = new Sprite() { Texture2D = Content.Load("Sprites/Pixel") }; Sprite spriteBall = new Sprite() { Texture2D = Content.Load("Sprites/Circle") };