public override void Load() { base.Load(); if (Content == null) { Content = new ContentManager(ScreenManager.Game.Services, "Content"); } GameContent.Load(Content); AddState(new GameStatePlaying(this)); }
public override void Load() { base.Load(); if (Content == null) { Content = new ContentManager(ScreenManager.Game.Services, "Content"); } GameContent.Load(Content); menu = MenuGui.Instance; sheetList = SpritesheetListGui.Instance; selector = SelectorGui.Instance; frames = FramesGui.Instance; prev = PreviewGui.Instance; animList = AnimationsListGui.Instance; }
/// <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); _backgroundP1 = new Background(spriteBatch, Player1Camera, BackgroundType.Overworld); _backgroundP2 = new Background(spriteBatch, Player2Camera, BackgroundType.Overworld); pauseMenu = new PauseMenu(this); gameOverScreen = new GameEndMenu(this); mainMenu = new MainMenu(this); GameContent.Load <Texture2D>("Sprites/ItemSpriteSheet"); GameContent.Load <Texture2D>("Sprites/FireFlower"); GameContent.Load <Texture2D>("Sprites/Coin"); GameContent.Load <Texture2D>("Sprites/SmallMario"); GameContent.Load <Texture2D>("Sprites/BigMario"); GameContent.Load <Texture2D>("Sprites/SuperMario"); GameContent.Load <Texture2D>("Sprites/AllBlocks"); GameContent.Load <Texture2D>("Sprites/Goomba"); GameContent.Load <Texture2D>("Sprites/GreenKoopa"); GameContent.Load <Texture2D>("Sprites/RedKoopa"); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { gameState.LoadContent(spriteBatch, graphicsManager); spritefont = GameContent.Load <SpriteFont>("myFont"); }