コード例 #1
0
ファイル: PositronGame.cs プロジェクト: peges/hungry
 public static void InitialSetup()
 {
     // Load textures into graphics memory space
     Texture.InitialSetup();
     Sound.InitialSetup();
     DialogSpeaker.InitialSetup();
 }
コード例 #2
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();
     };
 }
コード例 #3
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();
 }
コード例 #4
0
ファイル: Dialog.cs プロジェクト: Apelsin/positron
 public DialogStanza(DialogSpeaker speaker, string message)
 {
     Speaker = speaker;
     Message = message;
 }
コード例 #5
0
 public DialogStanza(DialogSpeaker speaker, string message)
 {
     Speaker = speaker;
     Message = message;
 }