void loadContentThread() { loading1Tex = content.Load <Texture2D>("LOADING0.png"); loading1.init(loading1Tex, new Vector2(0, 0)); loading2Tex = content.Load <Texture2D>("LOADING1.png"); loading2.init(loading1Tex, new Vector2(0, 0)); loading3Tex = content.Load <Texture2D>("LOADING2.png"); loading3.init(loading1Tex, new Vector2(0, 0)); loading4Tex = content.Load <Texture2D>("LOADING3.png"); loading4.init(loading1Tex, new Vector2(0, 0));; feOpeningImage = content.Load <Texture2D>("FEBGP.jpg"); feOpeningImageBackground.init(feOpeningImage, new Vector2(0, 0)); loading = false; wizardImage = content.Load <Texture2D>("wizard.png"); // spacemanImage = content.Load<Texture2D>("Spaceman.png"); spacemanImage = content.Load <Texture2D>("Ranger.png"); soldierImage = content.Load <Texture2D>("soldier.png"); reaperImage = content.Load <Texture2D>("reaper.png"); reaphitImage = content.Load <Texture2D>("reaperhit.png"); backgroundImage1 = content.Load <Texture2D>("palmuict.png"); backgroundImage2 = content.Load <Texture2D>("ICTG.png"); hellBground = content.Load <Texture2D>("hell.1.jpg"); fireballImage = content.Load <Texture2D>("fireball.png"); // bulletImage = content.Load<Texture2D>("spacebullet.png"); bulletImage = content.Load <Texture2D>("soldierbullet.png"); soldierBulletImage = content.Load <Texture2D>("soldierbullet.png"); banditImage = content.Load <Texture2D>("bandit.png"); playButtonImage = content.Load <Texture2D>("Play.png"); exitButtonImage = content.Load <Texture2D>("Exit.png"); nextImage = content.Load <Texture2D>("NEXT.png"); platformImage = content.Load <Texture2D>("platform.png"); hpImage = content.Load <Texture2D>("HP.png"); mainFont = content.Load <BitmapFont>("mainFont"); // shootSound = content.Load<SoundEffect>("shoot.wav"); shootSound = content.Load <SoundEffect>("sniperrifle.wav"); levelChangeSound = content.Load <SoundEffect>("levelChange.wav"); jumpSound = content.Load <SoundEffect>("JUMPVOICE.wav"); fireballSound = content.Load <SoundEffect>("fireball.wav"); enmDeath = content.Load <SoundEffect>("enmdie.wav"); backgroundMusic1 = content.Load <SoundEffect>("backgroundmusic1.wav"); // Thread.Sleep(2500); loadingComplete = true; }
public void init() { player.init(Loading.spacemanImage, new Vector2(0, 290)); background.init(Loading.hellBground, new Vector2(0, 0)); playButton.init(Loading.playButtonImage, new Vector2(210, 275), "play"); exitButton.init(Loading.exitButtonImage, new Vector2(0, 400), "exit"); initialized = true; }
public void init() { background.init(Loading.backgroundImage2, new Vector2(0, 0)); player.init(Loading.spacemanImage, new Vector2(0, 340)); nextButton.init(Loading.nextImage, new Vector2(600, 200), "NEXT"); platform.init(Loading.platformImage, new Vector2(525, 300)); platform1.init(Loading.platformImage, new Vector2(375, 250)); platform2.init(Loading.platformImage, new Vector2(450, 150)); platform3.init(Loading.platformImage, new Vector2(150, 100)); platform4.init(Loading.platformImage, new Vector2(250, 250)); platform5.init(Loading.platformImage, new Vector2(325, 100)); // Temporary stuff testEnm = new Enemy(Loading.soldierImage, Loading.soldierImage, new Vector2(0, 0), MainGame.enemyClass.NORMAL); testEnm.Position = new Vector2(200, 395 - testEnm.Texture.Height); testEnm.init(); mageEnm = new Enemy(Loading.wizardImage, Loading.wizardImage, new Vector2(0, 0), MainGame.enemyClass.MAGE); mageEnm.Position = new Vector2(449, 145 - mageEnm.Texture.Height); mageEnm.init(); reapEnm = new Enemy(Loading.reaperImage, Loading.reaperImage, new Vector2(0, 0), MainGame.enemyClass.REAPER); reapEnm.Position = new Vector2(449, 395 - reapEnm.Texture.Height); reapEnm.init(); hpHearth.init(Loading.hpImage, new Vector2(10, 10)); hpHearth1.init(Loading.hpImage, new Vector2(30, 10)); hpHearth2.init(Loading.hpImage, new Vector2(50, 10)); hpHearth3.init(Loading.hpImage, new Vector2(70, 10)); hpHearth4.init(Loading.hpImage, new Vector2(90, 10)); enemies.Add(testEnm); enemies.Add(mageEnm); enemies.Add(reapEnm); collidables.Add(ground); collidables.Add(nextButton); collidables.Add(platform); collidables.Add(platform1); collidables.Add(platform2); collidables.Add(platform3); collidables.Add(platform4); collidables.Add(platform5); initialized = true; Console.WriteLine("Sepeteus Level2"); }