Exemplo n.º 1
0
        protected SceneOne(PositronGame game)
            : base(game)
        {
            SceneEntry += (sender, e) => {
                if(!(e.From is SceneTwo))
                {
                    var stanzas = new List<DialogStanza>();
                    DialogSpeaker protagonist = DialogSpeaker.Get("protagonist");
                    DialogSpeaker radio = DialogSpeaker.Get("radio");
                    stanzas.Add(new DialogStanza(protagonist, "Where... Where am I?"));
                    stanzas.Add(new DialogStanza(radio, "*bzzsk*"));
                    stanzas.Add(new DialogStanza(protagonist, "Is this a two-way radio?"));
                    stanzas.Add(new DialogStanza(radio, "*vvvVVVVzzzzt*"));
                    stanzas.Add(new DialogStanza(radio, "Greetings life form!"));
                    stanzas.Add(new DialogStanza(protagonist, "Hey! Does this thing work?"));
                    stanzas.Add(new DialogStanza(radio, "I hear you just fine."));
                    stanzas.Add(new DialogStanza(radio, "You need to make your way out of this area\nas soon as you possibly can."));
                    stanzas.Add(new DialogStanza(protagonist, "Who are you?!\nWhy do I need to leave?"));
                    stanzas.Add(new DialogStanza(radio, "There's no time to explain.\nPlease just trust me."));
                    stanzas.Add(new DialogStanza(protagonist, "Okay, but why should I trust you?"));
                    stanzas.Add(new DialogStanza(radio, "I've got to go..."));
                    stanzas.Add(new DialogStanza(radio, "*clk-hsssss*"));

                    var dialog = new Dialog(e.To.HUD, "Dialog", stanzas);
                    dialog.Begin();
                    _Game.AddUpdateEventHandler(this, (sender2, e2) =>
                    {
                        _Game.Player1.PositionX = FirstTile.PositionX;
                        _Game.Player1.PositionY =
                            FirstTile.PositionY + 0.5 * (FirstTile.SizeY + _Game.Player1.Texture.DefaultRegion.SizeY);
                        return true;
                    });
                }
            };
        }
Exemplo n.º 2
0
 protected SceneThree()
     : base()
 {
     SceneEntry += (sender, e) => {
         var stanzas = new List<DialogStanza>();
         DialogSpeaker speaker = DialogSpeaker.Get("protagonist");
         stanzas.Add(new DialogStanza(speaker, "This room is eerily empty..."));
         var dialog = new Dialog(e.To.HUD, "Dialog", stanzas);
         dialog.Begin();
     };
 }
Exemplo n.º 3
0
 protected SceneThree(PositronGame game) :
     base(game)
 {
     SceneEntry += (sender, e) => {
         var           stanzas = new List <DialogStanza>();
         DialogSpeaker speaker = DialogSpeaker.Get("protagonist");
         stanzas.Add(new DialogStanza(speaker, "This room is eerily empty..."));
         var dialog = new Dialog(e.To.HUD, "Dialog", stanzas);
         dialog.Begin();
     };
 }
Exemplo n.º 4
0
 public SceneIntro(PositronGame game)
     : base(game)
 {
     SceneEntry += (sender, e) => {
         var stanzas = new List<DialogStanza>();
         DialogSpeaker speaker = null;//DialogSpeaker.Get("protagonist");
         stanzas.Add(new DialogStanza(speaker, ">electrical humming"));
         stanzas.Add(new DialogStanza(speaker, ">electrical humming\n..."));
         var dialog = new Dialog(e.To.HUD, "Dialog", stanzas);
         dialog.DialogEnd += (sender2, e2) =>
         {
             _Game.CurrentScene = ((Scene)_Game.Scenes["SceneOne"]);
         };
         dialog.Begin();
     };
     SetupPlayerOnExit();
 }
Exemplo n.º 5
0
 public SceneCredits()
     : base()
 {
     SceneEntry += (sender, e) => {
         var stanzas = new List<DialogStanza>();
         DialogSpeaker speaker = null;//DialogSpeaker.Get("protagonist");
         stanzas.Add(new DialogStanza(speaker,
                                      "Artwork:           Music:             Programming:\n" +
                                      "Fernando Corrales  A-Zu-Ra            Vince BG    \n" +
                                      "Megan Groden       Laurence Simmonds  Will Pham   \n" +
                                      "Vince BG           Will Pham                      "));
         var dialog = new Dialog(e.To.HUD, "Dialog", stanzas);
         dialog.DialogEnd += (sender2, e2) =>
         {
             Program.MainGame.ChangeScene((Scene)Program.MainGame.Scenes["SceneFirstMenu"]);
         };
         dialog.Begin();
     };
     SetupPlayerOnExit();
 }
Exemplo n.º 6
0
 public SceneCredits(PositronGame game) :
     base(game)
 {
     SceneEntry += (sender, e) => {
         var           stanzas = new List <DialogStanza>();
         DialogSpeaker speaker = null;//DialogSpeaker.Get("protagonist");
         stanzas.Add(new DialogStanza(speaker,
                                      "Artwork:           Music:             Programming:\n" +
                                      "Fernando Corrales  A-Zu-Ra            Vince BG    \n" +
                                      "Megan Groden       Laurence Simmonds  Will Pham   \n" +
                                      "Vince BG           Vince BG                       \n" +
                                      "                   Will Pham                      \n"));
         var dialog = new Dialog(e.To.HUD, "Dialog", stanzas);
         dialog.DialogEnd += (sender2, e2) =>
         {
             _Game.CurrentScene = ((Scene)_Game.Scenes["SceneFirstMenu"]);
         };
         dialog.Begin();
     };
     SetupPlayerOnExit();
     MainTimer.Restart();
 }