1: namespace WindowsGame4
2: {
3: public class Game1 : Microsoft.Xna.Framework.Game
4: {
5: GraphicsDeviceManager graphics;
6: SpriteBatch spriteBatch;
7:
8: public Game1()
9: {
10: graphics = new GraphicsDeviceManager(this);
11: Content.RootDirectory = "Content";
12: }
13:
14: protected override void Initialize()
15: {
16: // TODO: Add your initialization logic here
17:
18: base.Initialize();
19: }
20:
21: protected override void LoadContent()
22: {
23: // Create a new SpriteBatch, which can be used to draw textures.
24: spriteBatch = new SpriteBatch(GraphicsDevice);
25:
26: // TODO: use this.Content to load your game content here
27: }
28:
29: protected override void UnloadContent()
30: {
31: // TODO: Unload any non ContentManager content here
32: }
33: