/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // create teddy bears bear0 = new TeddyBear(Content, @"graphics\teddybear0", 100, 100, WindowWidth, WindowHeight); bear1 = new TeddyBear(Content, @"graphics\teddybear1", 200, 100, WindowWidth, WindowHeight); bear2 = new TeddyBear(Content, @"graphics\teddybear2", 300, 100, WindowWidth, WindowHeight); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // create teddy bears bear0 = new TeddyBear(Content, "teddybear0", 100, 100, WINDOW_WIDTH, WINDOW_HEIGHT); bear1 = new TeddyBear(Content, "teddybear1", 200, 100, WINDOW_WIDTH, WINDOW_HEIGHT); bear2 = new TeddyBear(Content, "teddybear2", 300, 100, WINDOW_WIDTH, WINDOW_HEIGHT); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // create the draw bear objects bear0 = new TeddyBear(Content, @"Graphics\teddybear0", graphics.PreferredBackBufferWidth / 4, graphics.PreferredBackBufferHeight / 2, WindowWidth, WindowHeight); bear1 = new TeddyBear(Content, @"Graphics\teddybear1", (graphics.PreferredBackBufferWidth / 2) + 125, graphics.PreferredBackBufferHeight / 2, WindowWidth, WindowHeight); }