/// <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); Content_Manager.getInstance().LoadTextures(Content); fontdebug = Content.Load<SpriteFont>("Fontdebug"); SoundManager.LoadContent(Content); MediaPlayer.Play(SoundManager.menu); MediaPlayer.IsRepeating = true; screenmanager = new ScreenManager(gameState, this); camera = screenmanager.camera; // TODO: use this.Content to load your game content here }
/// <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); Content_Manager.getInstance().LoadTextures(Content); fontdebug = Content.Load<SpriteFont>("Fontdebug"); //casperr = new Casper(Content_Manager.getInstance().Textures["Casper"], new Rectangle(400, 500, 130, 130)); //decors = new Decors(Content_Manager.getInstance().Textures["Level1"], new Rectangle(0, 0, 1680, 1050)); SoundManager.LoadContent(Content); MediaPlayer.Play(SoundManager.menu); MediaPlayer.IsRepeating = true; screenmanager = new ScreenManager(gameState, this); camera = screenmanager.camera; // TODO: use this.Content to load your game content here }