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);
        }
 void endCinematic()
 {
     if (cinematicToPlay != null)
     {
         setUpdatableOnPlayersAndEnemies(true);
         CameraManager.Instance.updating = true;
         cinematicToPlay = null;
     }
 }
        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);
        }
 public void addCinematic(string name, Cinematic cinematic)
 {
     cinematics[name] = cinematic;
 }
 public void playCinematic(string cinematic, bool updateCameras = false)
 {
     setUpdatableOnPlayersAndEnemies(false);
     CameraManager.Instance.updating = updateCameras;
     cinematicToPlay = cinematics[cinematic];
 }
Пример #6
0
        void loadEndCinematic()
        {
            Player player = GamerManager.getMainPlayer();
            Cinematic cinematic = new Cinematic();

            ActorEvent ae1 = new ActorEvent(player, false);
            ae1.moveTo(player.position + new Vector3(0, 1000, 0), 500);

            cinematic.events.Add(ae1);

            CinematicManager.Instance.addCinematic("fruitownA_exit", cinematic);
        }
Пример #7
0
        void loadEndGameCinematic()
        {
            Player player = GamerManager.getMainPlayer();
            Cinematic cinematic = new Cinematic();

            DialogEvent de1 = new DialogEvent(tDialogCharacter.Wish, "Oh! Painapple seems to be asleep. I wonder when she'll wake up...");
            cinematic.events.Add(de1);

            DialogEvent de2 = new DialogEvent(tDialogCharacter.Wish, "Well, I guess she's waiting for the winner of DREAM-BUILD-PLAY.");
            cinematic.events.Add(de2);

            DialogEvent de3 = new DialogEvent(tDialogCharacter.Wish, "I hope your wishes also come true!");
            cinematic.events.Add(de3);

            CinematicManager.Instance.addCinematic("endDemo", cinematic);
        }
Пример #8
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");
        }
Пример #9
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);
        }
        void loadReturnsCinematic()
        {
            Cinematic cinematic = new Cinematic();

            DialogEvent de1 = new DialogEvent(tDialogCharacter.KingTomato, TextKey.DialogTomatoAttack1.Translate());
            cinematic.events.Add((CinematicEvent)de1);
            CinematicManager.Instance.addCinematic("kingTomatoReturns", cinematic);
        }
        void loadIntroCinematic()
        {
            Cinematic cinematic = new Cinematic();
            ActorEvent ae1 = new ActorEvent(GamerManager.getMainPlayer(), false);
            ae1.setAt(new Vector3(0.0f, -900.0f, 0.0f));
            ae1.moveTo(new Vector3(0.0f, -220.0f, 0.0f), 200.0f);
            cinematic.events.Add((CinematicEvent)ae1);
            DialogEvent de1 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogOnionIntro1.Translate());
            cinematic.events.Add(de1);
            DialogEvent de2 = new DialogEvent(tDialogCharacter.OnionElder, TextKey.DialogOnionIntro2.Translate(), onionElder);
            cinematic.events.Add(de2);
            DialogEvent de3 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogOnionIntro3.Translate());
            cinematic.events.Add(de3);
            DialogEvent de4 = new DialogEvent(tDialogCharacter.OnionElder, TextKey.DialogOnionIntro4.Translate(), onionElder);
            cinematic.events.Add(de4);
            ActorEvent ae2 = new ActorEvent(GamerManager.getMainPlayer(), false, 0.3f, true, 2.5f);
            ae2.addActorFunction("activateGarlicGun");
            cinematic.events.Add(ae2);
            DialogEvent de5 = new DialogEvent(tDialogCharacter.Wish, TextKey.DialogOnionIntro5.Translate());
            cinematic.events.Add(de5);
            DialogEvent de6 = new DialogEvent(tDialogCharacter.OnionElder, TextKey.DialogOnionIntro6.Translate(), onionElder);
            cinematic.events.Add(de6);
            ActorEvent ae3 = new ActorEvent(onionElder, false);
            ae3.moveTo(new Vector3(-920.0f, -230.0f, 100.0f), 300.0f);
            cinematic.events.Add((CinematicEvent)ae3);
            SpecialEvent music = new SpecialEvent(GamerManager.getMainPlayer());
            music.setPlaySong("Naughty_boss", true);
            cinematic.events.Add(music);

            CinematicManager.Instance.addCinematic("kingTomatoIntro", cinematic);
        }
Пример #13
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);
        }
Пример #14
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);
        }