コード例 #1
0
        public override void OnEnter()
        {
            m_cutsceneRunning = true;
            SoundManager.StopMusic(0.5f);
            m_boss.ChangeSprite("EnemyEyeballBossFire_Character");
            m_boss.ChangeToBossPupil();
            var scale = m_boss.Scale;

            m_boss.Scale = new Vector2(0.3f, 0.3f);
            Player.AttachedLevel.Camera.X = (int)(Bounds.Left + Player.AttachedLevel.Camera.Width * 0.5f);
            Player.AttachedLevel.Camera.Y = Player.Y;
            var arg_CA_0 = Player.AttachedLevel.Camera.Position;

            m_boss.AnimationDelay = 0.1f;
            Player.LockControls();
            Player.AttachedLevel.RunCinematicBorders(8f);
            Player.AttachedLevel.CameraLockedToPlayer = false;
            Player.AttachedLevel.Camera.Y             = Player.Y;
            Tween.To(Player.AttachedLevel.Camera, 1f, Quad.EaseInOut, "Y", m_boss.Y.ToString());
            Tween.RunFunction(1.1f, m_boss, "PlayAnimation", true);
            Tween.To(m_boss, 0.5f, Linear.EaseNone, "delay", "2.5", "AnimationDelay", 0.0166666675f.ToString());
            Tween.To(m_boss, 3f, Quad.EaseInOut, "delay", "1", "Rotation", "1800");
            Tween.AddEndHandlerToLastTween(m_boss, "ChangeSprite", "EnemyEyeballBossEye_Character");
            Tween.To(m_boss, 2f, Bounce.EaseOut, "delay", "2", "ScaleX", scale.X.ToString(), "ScaleY",
                     scale.Y.ToString());
            Tween.RunFunction(3.2f, this, "DisplayBossTitle", "The Gatekeeper", m_boss.Name, "Intro2");
            Tween.RunFunction(0.8f, typeof(SoundManager), "PlaySound", "Boss_Eyeball_Build");
            base.OnEnter();
        }
コード例 #2
0
        public override void OnEnter()
        {
            StorePlayerData();
            SetRoomData();
            m_cutsceneRunning = true;
            SoundManager.StopMusic(0.5f);
            m_boss.ChangeSprite("EnemyEyeballBossEye_Character");
            m_boss.ChangeToBossPupil();
            m_boss.PlayAnimation();
            Player.AttachedLevel.Camera.X = (int)(Bounds.Left + Player.AttachedLevel.Camera.Width * 0.5f);
            Player.AttachedLevel.Camera.Y = Player.Y;
            var arg_BC_0 = Player.AttachedLevel.Camera.Position;

            Player.LockControls();
            Player.AttachedLevel.RunCinematicBorders(6f);
            Player.AttachedLevel.CameraLockedToPlayer = false;
            Player.AttachedLevel.Camera.Y             = Player.Y;
            Tween.To(Player.AttachedLevel.Camera, 1f, Quad.EaseInOut, "Y", m_boss.Y.ToString());
            Tween.RunFunction(1.2f, this, "DisplayBossTitle", Game.PlayerStats.PlayerName + " VS", m_boss.Name, "Intro2");
            base.OnEnter();
            m_bossChest.ForcedItemType = 15;
        }