void loadEndCinematic()
        {
            Cinematic cinematic = new Cinematic();
            ActorEvent ae1 = new ActorEvent(GamerManager.getMainPlayer(), false);
            ae1.moveTo(new Vector3(0.0f, -200.0f, 0.0f), 200.0f);
            ActorEvent ae12 = new ActorEvent(GamerManager.getMainPlayer(), false);
            ae12.setOrientation(0.0f);

            cinematic.events.Add((CinematicEvent)ae1);
            cinematic.events.Add((CinematicEvent)ae12);

            Player player = GamerManager.getMainPlayer();
            if (savedFruits < 25)
            {
                DialogEvent de1 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticBad1.Translate(), macedonia);
                ActorEvent ae2 = new ActorEvent(player, false);
                ae2.setOrientation(2.3f);
                ActorEvent ae3 = new ActorEvent(player, false);
                ae3.setOrientation(4.8f);
                ActorEvent ae4 = new ActorEvent(player, false);
                ae4.setOrientation(1.1f);
                ActorEvent ae5 = new ActorEvent(player, false);
                ae5.setOrientation(0.0f);
                DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogEpilepticBad2.Translate());
                ActorEvent ae6 = new ActorEvent(player, false);
                ae6.moveTo(new Vector3(player.positionX, -950.0f, 0.0f), 100.0f);
                DialogEvent de3 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticBad3.Translate(), macedonia);

                cinematic.events.Add((CinematicEvent)de1);
                cinematic.events.Add((CinematicEvent)ae2);
                cinematic.events.Add((CinematicEvent)ae3);
                cinematic.events.Add((CinematicEvent)ae4);
                cinematic.events.Add((CinematicEvent)ae5);
                cinematic.events.Add((CinematicEvent)de2);
                cinematic.events.Add((CinematicEvent)ae6);
                cinematic.events.Add((CinematicEvent)de3);

                if (!GamerManager.getSessionOwner().data.skills["dash1"].obtained)
                {
                    DialogEvent deSpecial = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticBadSpecial.Translate());
                    cinematic.events.Add((CinematicEvent)deSpecial);
                }
            }
            else if (savedFruits < 40)
            {
                DialogEvent de1 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticMedium1.Translate(), macedonia);
                DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogEpilepticMedium2.Translate());
                DialogEvent de3 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticMedium3.Translate(), macedonia);

                cinematic.events.Add((CinematicEvent)de1);
                cinematic.events.Add((CinematicEvent)de2);
                cinematic.events.Add((CinematicEvent)de3);

                if (!GamerManager.getSessionOwner().data.skills["dash1"].obtained)
                {
                    DialogEvent deSpecial = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticMediumSpecial.Translate(), macedonia);
                    cinematic.events.Add((CinematicEvent)deSpecial);
                }
            }
            else
            {
                DialogEvent de1 = new DialogEvent(tDialogCharacter.Macedonia, TextKey.DialogEpilepticGood1.Translate(), macedonia);
                DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogEpilepticGood2.Translate());

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

            CinematicManager.Instance.addCinematic("endMacedoniaMinigame", cinematic);
        }
Exemplo n.º 2
0
        void loadAndPlayIntroCinematic()
        {
            Player player = GamerManager.getMainPlayer();
            Cinematic cinematic = new Cinematic();

            if (GamerManager.getSessionOwner().data.levelsPassed["fruitownA"])
            {
                player.position2D = new Vector2(0, -700);

                ActorEvent ae1 = new ActorEvent(player, false);
                ae1.moveTo(new Vector3(0.0f, -200.0f, 0.0f), 300.0f);
                ActorEvent ae12 = new ActorEvent(player, false);
                ae12.setOrientation(0.0f);

                DialogEvent de7 = new DialogEvent(tDialogCharacter.DarkWish, TextKey.DialogDarkWishRemind1.Translate());
                DialogEvent de8 = new DialogEvent(tDialogCharacter.DarkWish,TextKey.DialogDarkWishRemind2.Translate());

                cinematic.events.Add((CinematicEvent)ae1);
                cinematic.events.Add((CinematicEvent)ae12);
                cinematic.events.Add((CinematicEvent)de7);
                cinematic.events.Add((CinematicEvent)de8);
            }
            else
            {
                ConsequenceFunctions.wishEntersGame();
                DialogEvent de1 = new DialogEvent(tDialogCharacter.DarkWish, TextKey.DialogDarkWish1.Translate());
                ActorEvent ae2 = new ActorEvent(player, false);
                ae2.setOrientation(2.3f);
                ActorEvent ae3 = new ActorEvent(player, false);
                ae3.setOrientation(4.8f);
                ActorEvent ae4 = new ActorEvent(player, false);
                ae4.setOrientation(1.1f);
                ActorEvent ae5 = new ActorEvent(player, false);
                ae5.setOrientation(0.0f);
                DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogDarkWish2.Translate());
                DialogEvent de3 = new DialogEvent(tDialogCharacter.DarkWish, TextKey.DialogDarkWish3.Translate());
                DialogEvent de4 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogDarkWish4.Translate());
                DialogEvent de5 = new DialogEvent(tDialogCharacter.DarkWish, TextKey.DialogDarkWish5.Translate());
                DialogEvent de6 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogDarkWish6.Translate());
                DialogEvent de7 = new DialogEvent(tDialogCharacter.DarkWish, TextKey.DialogDarkWish7.Translate());
                DialogEvent de8 = new DialogEvent(tDialogCharacter.DarkWish, TextKey.DialogDarkWish8.Translate());

                cinematic.events.Add((CinematicEvent)de1);
                cinematic.events.Add((CinematicEvent)ae2);
                cinematic.events.Add((CinematicEvent)ae3);
                cinematic.events.Add((CinematicEvent)ae4);
                cinematic.events.Add((CinematicEvent)ae5);
                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);
                cinematic.events.Add((CinematicEvent)de7);
                cinematic.events.Add((CinematicEvent)de8);
            }

            CinematicManager.Instance.addCinematic("fruitownIntro", cinematic);
            CinematicManager.Instance.playCinematic("fruitownIntro");
        }
Exemplo n.º 3
0
        void loadAndPlayVerducityIntroCinematic()
        {
            Player player = GamerManager.getMainPlayer();
            Cinematic cinematic = new Cinematic();

            player.position2D = new Vector2(0, -700);

            ActorEvent ae1 = new ActorEvent(player, false);
            ae1.moveTo(new Vector3(0.0f, -200.0f, 0.0f), 300.0f);
            ActorEvent ae12 = new ActorEvent(player, false);
            ae12.setOrientation(0.0f);

            DialogEvent de1 = new DialogEvent(tDialogCharacter.DarkWish, TextKey.DialogVerducityIntro1.Translate());
            DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogVerducityIntro2.Translate());
            DialogEvent de3 = new DialogEvent(tDialogCharacter.DarkWish, TextKey.DialogVerducityIntro3.Translate());

            cinematic.events.Add((CinematicEvent)ae1);
            cinematic.events.Add((CinematicEvent)ae12);
            cinematic.events.Add((CinematicEvent)de1);
            cinematic.events.Add((CinematicEvent)de2);
            cinematic.events.Add((CinematicEvent)de3);

            CinematicManager.Instance.addCinematic("verducityIntro", cinematic);
            CinematicManager.Instance.playCinematic("verducityIntro");
        }
        void loadSpeechCinematic(Enemy kingTomato)
        {
            Cinematic cinematic = new Cinematic();

            ActorEvent ae1 = new ActorEvent(GamerManager.getMainPlayer(), false);
            ae1.moveTo(new Vector3(0.0f, 0, 0.0f), Player.SPEED, true);

            ActorEvent ae2 = new ActorEvent(GamerManager.getMainPlayer(), false);
            ae2.setOrientation(-Calc.PiOver4);

            ActorEvent ae3 = new ActorEvent(kingTomato, false);
            ae3.setAt(new Vector3(1200.0f, 1000.0f, 0.0f));
            ae3.moveTo(new Vector3(600.0f, 360.0f, 0.0f), KingTomato.SPEED);

            DialogEvent de1 = new DialogEvent(tDialogCharacter.KingTomato, TextKey.DialogTomatoComes1.Translate());
            DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogTomatoComes2.Translate());
            DialogEvent de3 = new DialogEvent(tDialogCharacter.KingTomato, TextKey.DialogTomatoComes3.Translate());

            cinematic.events.Add((CinematicEvent)ae1);
            cinematic.events.Add((CinematicEvent)ae2);
            cinematic.events.Add((CinematicEvent)ae3);
            cinematic.events.Add((CinematicEvent)de1);
            cinematic.events.Add((CinematicEvent)de2);
            cinematic.events.Add((CinematicEvent)de3);
            CinematicManager.Instance.addCinematic("kingTomatoSpeech", cinematic);
        }