public void LoadContent(IContentHelper contentHelper) { contentHelper = ContentHelper.Instance; foreach (var viewState in viewStatesDic.Values) { viewState.LoadContent(contentHelper); } contentHelper.GetContent <Song>("FinishLevel"); contentHelper.GetContent <Song>("TheEnd"); contentHelper.GetContent <SpriteFont>("Shooter"); contentHelper.GetContent <Texture2D>("Title"); contentHelper.GetContent <Texture2D>("LoveSpriteSheet"); contentHelper.GetContent <Texture2D>("CursorSpriteSheet"); contentHelper.GetContent <Texture2D>("Boss1SpriteSheet"); contentHelper.GetContent <Texture2D>("Boss1HitSpriteSheet"); contentHelper.GetContent <Texture2D>("BossDestructionSpriteSheet"); contentHelper.GetContent <Texture2D>("BonusSpriteSheet"); contentHelper.GetContent <Texture2D>("EnemySpriteSheet"); contentHelper.GetContent <Texture2D>("DestructionSpriteSheet"); contentHelper.GetContent <Texture2D>("ComboSpriteSheet"); contentHelper.GetContent <Texture2D>("EnemySpriteSheet"); contentHelper.GetContent <Texture2D>("EnemyBullet3SpriteSheet"); contentHelper.GetContent <Texture2D>("EnemyBulletSpriteSheet"); contentHelper.GetContent <Texture2D>("PlayerBullet1SpriteSheet"); contentHelper.GetContent <Texture2D>("EnemyBullet2SpriteSheet"); contentHelper.GetContent <Texture2D>("PlayerBullet1SpriteSheet"); //contentHelper.GetSoundEffectInstance("PlayerBullet1Shooting"); contentHelper.GetSoundEffectInstance("Fire"); contentHelper.GetSoundEffectInstance("Clock"); }
public override void LoadContent(IContentHelper contentHelper) { Size = new Vector2(6, 6); bossSpriteSheet = bossSpriteSheet ?? contentHelper.GetContent <Texture2D>(GetBossSpriteSheetName(levelNumber)); bossHitSpriteSheet = bossHitSpriteSheet ?? contentHelper.GetContent <Texture2D>(GetBossHitSpriteSheetName(levelNumber)); destructionSpriteSheet = destructionSpriteSheet ?? contentHelper.GetContent <Texture2D>("BossDestructionSpriteSheet"); hitSoundEffectInstance = hitSoundEffectInstance ?? contentHelper.GetSoundEffectInstance(this.GetType().Name + "Hit"); bossExplosionSoundEffectInstance = bossExplosionSoundEffectInstance ?? contentHelper.GetSoundEffectInstance("BossExplosion"); fireSoundInstance = fireSoundInstance ?? contentHelper.GetSoundEffectInstance("Fire"); }
public virtual void LoadContent(IContentHelper contentHelper) { this.contentHelper = contentHelper; finishLevelSong = contentHelper.GetContent <Song>("FinishLevel"); theEndSong = contentHelper.GetContent <Song>("TheEnd"); font = contentHelper.GetContent <SpriteFont>("Shooter"); titleTexture = contentHelper.GetContent <Texture2D>("Title"); loveTexture = contentHelper.GetContent <Texture2D>("LoveSpriteSheet"); cursorTexture = contentHelper.GetContent <Texture2D>("CursorSpriteSheet"); clockSoundEffectInstance = contentHelper.GetSoundEffectInstance("Clock"); //princess = new Princess(); //princess.LoadContent(contentHelper); InitializeLevel(); }
public override void LoadContent(IContentHelper contentHelper) { base.LoadContent(contentHelper); startSong = contentHelper.GetContent <Song>("StartNew"); clickSoundEffectInstance = contentHelper.GetSoundEffectInstance("Click"); }
public override void LoadContent(IContentHelper contentHelper) { playerSpriteSheet = playerSpriteSheet ?? contentHelper.GetContent <Texture2D>("PlayerSpriteSheet"); destructionSpriteSheet = destructionSpriteSheet ?? contentHelper.GetContent <Texture2D>("PlayerDestructionSpriteSheet"); fireSoundInstance = fireSoundInstance ?? contentHelper.GetSoundEffectInstance("Fire"); }
public override void LoadContent(IContentHelper contentHelper) { bulletSpriteSheet = bulletSpriteSheet ?? contentHelper.GetContent <Texture2D>(this.GetType().Name + "SpriteSheet"); //soundEffectInstance = soundEffectInstance ?? contentHelper.GetSoundEffectInstance(this.GetType().Name + "Shooting"); soundEffectInstance = soundEffectInstance ?? contentHelper.GetSoundEffectInstance("Fire"); }