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