public void LoadContent(ContentManager Content) { soundEffects.Initialize(Content); Castle.Content = Content; ayoub.LoadContent(Content); styraxTheHero = new Hero(new Vector2(800, 1000)); styraxTheHero.LoadContent(Content); abilities.Initialize(Content, styraxTheHero); zombiesDeath.initialize(Content); megaTexture = Content.Load <Texture2D>("megaShuriken"); shuriTexture = Content.Load <Texture2D>("shuriken_Final"); zombiesDeath.initialize(Content); shur.Initialize(shuriTexture, megaTexture, details, Content, abilities, zombiesDeath, soundEffects); zombies.Initialize(details, styraxTheHero, Content, zombiesDeath); #region mapContent castletile.Initialize(styraxTheHero); gui = new GUI(Content, styraxTheHero); camera = new Camera(details.Viewport, gui, healthbar); styraxTheHero.getMap3(castletile); zombies.getMap3(castletile); #endregion zombies.getSound(soundEffects); styraxTheHero.getManagers(zombies, shur); }
public void LoadContent(ContentManager Content) { mountain.Content = Content; clouds.initialize(Content, "mapTwo/sky", details.Viewport.Width, details.Viewport.Height, -2); backClouds.initialize(Content, "mapTwo/sky2", details.Viewport.Width, details.Viewport.Height, -1); soundEffects.Initialize(Content); styraxTheHero.LoadContent(Content); zombieDeath.initialize(Content); abilitiesManager.Initialize(Content, styraxTheHero); shuriTexture = Content.Load <Texture2D>("shuriken_Final"); megaTexture = Content.Load <Texture2D>("megaShuriken"); shur.Initialize(shuriTexture, megaTexture, details, Content, abilitiesManager, zombieDeath, soundEffects); zombies.Initialize(details, styraxTheHero, Content, zombieDeath); #region mapContent mountains.Initialize(styraxTheHero); gui = new GUI(Content, styraxTheHero); camera = new Camera(details.Viewport, gui, healthbar); styraxTheHero.getMap2(mountains); #endregion healthbar.LoadContent(Content, zombies); styraxTheHero.getManagers(zombies, shur); zombies.getMap2(mountains); zombies.getSManager(shur, healthbar); zombies.getSound(soundEffects); shur.getEnManager(zombies); shur.giveManager(); }
public void LoadContent(ContentManager Content) { styraxTheHero.LoadContent(Content); gui = new GUI(Content, styraxTheHero); zombiesDeath.initialize(Content); abilitiesManager.Initialize(Content, styraxTheHero); font1 = Content.Load <SpriteFont>("Font/borrowedFont"); shuriTexture = Content.Load <Texture2D>("shuriken_Final"); megaTexture = Content.Load <Texture2D>("megaShuriken"); zombies.Initialize(details, styraxTheHero, Content, zombiesDeath); healthbar.LoadContent(Content, zombies); #region mapContent bgLayer1.initialize(Content, "mapOne/Fog", details.Viewport.Width, details.Viewport.Height, -1); TileOfTrees.Content = Content; Tile.Content = Content; wallTile.Content = Content; maptile.Intialize(); mapwall.Initilize(); map.Initialize(styraxTheHero, zombies); maptile.getManagerAndStyrax(styraxTheHero, zombies); #endregion styraxTheHero.getMap(map, maptile); zombies.getMap(map); zombies.getMap4(maptile); gui = new GUI(Content, styraxTheHero); camera = new Camera(details.Viewport, gui, healthbar); specialEffects.Initialize(Content); zombies.getSound(specialEffects); shur.Initialize(shuriTexture, megaTexture, details, Content, abilitiesManager, zombiesDeath, specialEffects); zombies.getSManager(shur, healthbar); fontPos = styraxTheHero.position; fontPos.Y += 50; styraxTheHero.getManagers(zombies, shur); }