예제 #1
0
 public void FoundPinkArthur()
 {
     if (!hasFoundPinkArthur)
     {
         hasFoundPinkArthur = true;
         SubtitleText t = new SubtitleText();
         t.AddText("My King! Here you are.", 4f);
         t.AddText("We have come, to rescue thee.", 4f);
         t.AddText("Follow me, out of this\ncursed place.", 7f);
         Subtitles.Show(8, t);
     }
 }
예제 #2
0
        public virtual void LoseLevel()
        {
            this.Subtitles.Children.Clear(); // clean out any remaining subtitles being shown.
            SubtitleText t = new SubtitleText();

            t.AddText("BADLY WOUNDED, YOU DIE.", 7f);
            t.AddText("Galad the Golden is no more.", 7f);
            t.AddText("Pink Arthur remains captive\nfor all his life.", 7f);
            t.AddText("** THE END **", 7f);
            Subtitles.Show(9, t);
            isBackgroundScrollingOn = false; // stop the scrolling of the level around hero

            t                 = new SubtitleText();
            t.ScaleVector     = new Vector2(1f, 1f);
            t.ShadowVector    = new Vector2(1f, 1f);
            t.Motion.Scale    = 0.5f;
            t.Motion.Position = new Vector2(Screen.Center.X, 0.08f);
            t.StartTime       = this.SimTime + 28.5f;
            t.AddText("Coding & art by Indiegame Garden 2012-2015", 7f);
            Parent.AddNextUpdate(t);
        }
예제 #3
0
        public void WinLevel()
        {
            if (!hasWon)
            {
                float        playTime = (float)Math.Round(SimTime);
                SubtitleText t        = new SubtitleText();
                t.AddText("My King! WE WON!!", 5f).DrawInfo.DrawColor                 = Color.DarkGoldenrod;
                t.AddText("(Arthur:) I am home, at last.", 4f).DrawInfo.DrawColor     = PINK_COLOR;
                t.AddText("A reward, Galad,\nawaits thee...", 5f).DrawInfo.DrawColor  = PINK_COLOR;
                t.AddText("...in the Garden of Golden Chain!", 6f).DrawInfo.DrawColor = PINK_COLOR;
                t.AddText("", 1f);
                t.AddText("(Bard:) And so Arthur ruled for\nmany more prosperous years.", 4f);
                t.AddText("His Knights of the Square Table didth\ncommit a many legendary deeds.", 6f);
                t.AddText("", 2f);
                t.AddText("** THE END **", 4f);
                t.AddText("(Rescue time: " + playTime + " heart-beats.)", 15f);
                t.AddText("** THE END **", 4f);
                Subtitles.Show(6, t);
                hasWon = true;

                // level changes o so slightly
                Background.OverlayTexture("Garden1.png");
            }
        }