/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { IsMouseVisible = true; Globals.GraphicsDevice = GraphicsDevice; Globals.primitive = new Texture2D(GraphicsDevice, 1, 1); spriteFont = Content.Load <SpriteFont>("std_font"); Globals.tileMap = Content.Load <Texture2D>("basetiles"); Globals.buttons_medium = Content.Load <Texture2D>("Buttons_Medium_Spritesheet"); Globals.buttons_small = Content.Load <Texture2D>("Buttons_Small_Spritesheet"); borders = Content.Load <Texture2D>("borders"); session = new Classes.Session(graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight); session.SerializeBorderTextures(GraphicsDevice, borders); base.Initialize(); }