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); }
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 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); }
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 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"); }
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 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); }