Example #1
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     fadeEffect  = new FadeEffect(Content.Load <Texture2D>("etc/fade_effect"), 6, 0.1f, 6, 0.1f);
     dimStrength = 0.6f;
     TileMap.loadTiles(Content);
     GameData.initTextures(Content);
     scripts = new CutsceneScripts();
     CutsceneScripts.loadScripts(scripts);
     CutsceneScripts.mainGame = this;
     MediaPlayer.IsRepeating  = true;
     mc        = new MainCharacter(Content.Load <Texture2D>("sprites/Characters/flwick"), new Vector2(0, 0), "Flwick", this);
     camera    = new Camera(mc.position);
     inventory = new InventoryState(this, graphics.GraphicsDevice, Content, "Inventory", InventoryState.SINGLE_COLUMN, 5);
     currState = new MenuState(this, graphics.GraphicsDevice, Content, "Menu");
     currState.LoadContent();
     nextState = null;
 }