public static void InitialSetup() { // Load textures into graphics memory space Texture.InitialSetup(); Sound.InitialSetup(); DialogSpeaker.InitialSetup(); }
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(); }; }
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(); }
public DialogStanza(DialogSpeaker speaker, string message) { Speaker = speaker; Message = message; }