Beispiel #1
0
 public override void Initialize()
 {
     m_boss = (EnemyList[0] as EnemyObj_Fairy);
     m_boss.PauseEnemy(true);
     m_bossShadow = new ObjContainer("EnemyFairyGhostBossMove_Character");
     m_boss.ChangeSprite("EnemyFairyGhostBossIdle_Character");
     m_bossShadow.TextureColor = Color.Black;
     m_bossShadow.Scale        = m_boss.Scale;
     m_bossShadow.PlayAnimation();
     GameObjList.Add(m_bossShadow);
     base.Initialize();
 }
Beispiel #2
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;
 }