Пример #1
0
        private void CreateFairy(GameTypes.EnemyDifficulty difficulty)
        {
            var enemyObj_Fairy = new EnemyObj_Fairy(null, null, null, difficulty);

            enemyObj_Fairy.Position  = Position;
            enemyObj_Fairy.DropsItem = false;
            if (m_target.X < enemyObj_Fairy.X)
            {
                enemyObj_Fairy.Orientation = MathHelper.ToRadians(0f);
            }
            else
            {
                enemyObj_Fairy.Orientation = MathHelper.ToRadians(180f);
            }
            enemyObj_Fairy.Level = Level - 7 - 1;
            m_levelScreen.AddEnemyToCurrentRoom(enemyObj_Fairy);
            enemyObj_Fairy.PlayAnimation();
            enemyObj_Fairy.MainFairy        = false;
            enemyObj_Fairy.SavedStartingPos = enemyObj_Fairy.Position;
            enemyObj_Fairy.SaveToFile       = false;
            if (LevelEV.SHOW_ENEMY_RADII)
            {
                enemyObj_Fairy.InitializeDebugRadii();
            }
            enemyObj_Fairy.SpawnRoom       = m_levelScreen.CurrentRoom;
            enemyObj_Fairy.GivesLichHealth = false;
        }
Пример #2
0
 public void Intro4()
 {
     m_boss.PlayAnimation();
     m_bossShadow.ChangeSprite("EnemyFairyGhostBossIdle_Character");
     m_bossShadow.PlayAnimation();
     Tween.To(m_boss, 0.5f, Tween.EaseNone, "delay", "0.5", "Opacity", "1");
     Tween.To(m_bossShadow, 0.5f, Tween.EaseNone, "delay", "0.5", "Opacity", "0");
     Tween.AddEndHandlerToLastTween(this, "DisplayBossTitle", "The Forgotten", m_boss.Name, "Intro5");
 }
Пример #3
0
 public override void OnEnter()
 {
     m_teleportingOut = false;
     //Player.Flip = SpriteEffects.None;
     StorePlayerData();
     Player.Flip = SpriteEffects.None;
     SetRoomData();
     m_cutsceneRunning = true;
     SoundManager.StopMusic(0.5f);
     m_boss.ChangeSprite("EnemyFairyGhostBossIdle_Character");
     m_boss.PlayAnimation();
     Player.AttachedLevel.UpdateCamera();
     m_startingCamPos = Player.AttachedLevel.Camera.Position;
     Player.LockControls();
     Player.AttachedLevel.RunCinematicBorders(6f);
     Player.AttachedLevel.CameraLockedToPlayer = false;
     Tween.To(Player.AttachedLevel.Camera, 1f, Quad.EaseInOut, "Y", m_boss.Y.ToString(), "X", m_boss.X.ToString());
     Tween.RunFunction(1.2f, this, "DisplayBossTitle", Game.PlayerStats.PlayerName + " VS", m_boss.Name, "Intro2");
     base.OnEnter();
     Player.GetChildAt(10).TextureColor = Color.White;
     m_bossChest.ForcedItemType         = 16;
 }
Пример #4
0
 private void CreateFairy(GameTypes.EnemyDifficulty difficulty)
 {
     EnemyObj_Fairy enemyObj_Fairy = new EnemyObj_Fairy(null, null, null, difficulty);
     enemyObj_Fairy.Position = base.Position;
     enemyObj_Fairy.DropsItem = false;
     if (this.m_target.X < enemyObj_Fairy.X)
     {
         enemyObj_Fairy.Orientation = MathHelper.ToRadians(0f);
     }
     else
     {
         enemyObj_Fairy.Orientation = MathHelper.ToRadians(180f);
     }
     enemyObj_Fairy.Level = base.Level - 7 - 1;
     this.m_levelScreen.AddEnemyToCurrentRoom(enemyObj_Fairy);
     enemyObj_Fairy.PlayAnimation(true);
     enemyObj_Fairy.MainFairy = false;
     enemyObj_Fairy.SavedStartingPos = enemyObj_Fairy.Position;
     enemyObj_Fairy.SaveToFile = false;
     if (LevelEV.SHOW_ENEMY_RADII)
     {
         enemyObj_Fairy.InitializeDebugRadii();
     }
     enemyObj_Fairy.SpawnRoom = this.m_levelScreen.CurrentRoom;
     enemyObj_Fairy.GivesLichHealth = false;
 }