Пример #1
0
        void loadIntroCinematic()
        {
            Cinematic cinematic = new Cinematic();

            ActorEvent ae1 = new ActorEvent(this);
            ae1.setActionToPlay("speaking");
            DialogEvent de1 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogBossMacedoniaIntro1.Translate(), this);
            ActorEvent ae2 = new ActorEvent(this);
            ae2.setActionToPlay("idle");
            DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogBossMacedoniaIntro2.Translate());

            cinematic.events.Add(ae1);
            cinematic.events.Add(de1);
            cinematic.events.Add(ae2);
            cinematic.events.Add(de2);

            CinematicManager.Instance.addCinematic("macedoniaIntro", cinematic);
        }
        void loadIntroCinematic()
        {
            Cinematic cinematic = new Cinematic();
            ActorEvent ae1 = new ActorEvent(GamerManager.getMainPlayer(), false);
            ae1.setAt(new Vector3(0.0f, -1000.0f, 0.0f));
            ae1.moveTo(new Vector3(0.0f, -200.0f, 0.0f), 200.0f);

            DialogEvent de1 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogEpilepticIntro1.Translate());
            DialogEvent de2 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticIntro2.Translate(), macedonia);
            DialogEvent de3 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogEpilepticIntro3.Translate());
            DialogEvent de4 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticIntro4.Translate(), macedonia);
            DialogEvent de5 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogEpilepticIntro5.Translate());
            DialogEvent de6 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticIntro6.Translate(), macedonia);

            cinematic.events.Add((CinematicEvent)ae1);
            cinematic.events.Add((CinematicEvent)de1);
            cinematic.events.Add((CinematicEvent)de2);
            cinematic.events.Add((CinematicEvent)de3);
            cinematic.events.Add((CinematicEvent)de4);
            cinematic.events.Add((CinematicEvent)de5);
            cinematic.events.Add((CinematicEvent)de6);

            if (!GamerManager.getSessionOwner().data.skills["dash1"].obtained)
            {
                DialogEvent deSpecial = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogLearnDash.Translate());
                cinematic.events.Add((CinematicEvent)deSpecial);
            }

            ActorEvent ae2 = new ActorEvent(GamerManager.getMainPlayer(), false);
            ae2.moveTo(new Vector3(0.0f, -500.0f, 0.0f), 200.0f);
            cinematic.events.Add((CinematicEvent)ae2);

            ActorEvent ae3 = new ActorEvent(macedonia, false);
            ae3.setActionToPlay("attackShake");
            cinematic.events.Add((CinematicEvent)ae3);

            CinematicManager.Instance.addCinematic("epilepticMacedoniaIntro", cinematic);
        }
Пример #3
0
        void loadEndCinematic()
        {
            Cinematic cinematic = new Cinematic();

            ActorEvent ae2 = new ActorEvent(this);
            ae2.setActionToPlay("speaking");
            DialogEvent de1 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogBossMacedoniaOutro1.Translate(), this);
            ActorEvent ae3 = new ActorEvent(this);
            ae3.setActionToPlay("idle");
            DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogBossMacedoniaOutro2.Translate());
            ActorEvent ae1 = new ActorEvent(this);
            ae1.setActionToPlay("speaking");
            DialogEvent de3 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogBossMacedoniaOutro3.Translate(), this);
            ActorEvent ae4 = new ActorEvent(this);
            ae4.setActionToPlay("idle");
            SpecialEvent se1 = new SpecialEvent(this);
            se1.setPlayEffect("macedoniaAppear", position + new Vector3(0, -100, 5), Vector3.Zero, Color.White, 2);
            ActorEvent ae5 = new ActorEvent(this);
            ae5.setRender(false);

            cinematic.events.Add(ae2);
            cinematic.events.Add(de1);
            cinematic.events.Add(ae3);
            cinematic.events.Add(de2);
            cinematic.events.Add(ae1);
            cinematic.events.Add(de3);
            cinematic.events.Add(ae4);
            cinematic.events.Add(se1);
            cinematic.events.Add(ae5);

            CinematicManager.Instance.addCinematic("macedoniaEnd", cinematic);
        }