Beispiel #1
0
        protected override void InitLevelSpecific()
        {
            Music = new GameMusic();
            Add(Music);

            SubtitleText t = new SubtitleText();

            t.AddText("QUEST FOR THE\nPIXEL PRINCESS", 6f);
            t.AddText("You, The Golden Knight, must\nrescue the princess...", 5f);
            t.AddText("...from the clutches of\nthe evil Red Guard.", 5f);
            //t.AddText("...from the clutches of\nthe evil Red Guard.", 5f);
            Subtitles.Show(0, t);

            t           = new SubtitleText("My ears! Hark the drums\nof the Red Guard!");
            t.StartTime = 64.0f;
            t.Duration  = 10.0f;
            Subtitles.Show(0, t);

            t = new SubtitleText();
            t.AddText("Music 'The Never Ending Quest For The\nPrincess II' by Producer Snafu!\nCC-BY-NC  producersnafu.bandcamp.com", 10f);
            t.AddText("FMOD Audio engine\n(c) Firelight Technologies Pty, Ltd. 2004-2009.", 6f);
            //t.Duration = 10f;
            Parent.Add(t);
            t.ScaleVector     = new Vector2(1f, 1f);
            t.Motion.Scale    = 0.35f;/// DEFAULT_SCALE;
            t.Motion.Position = new Vector2(0.35f, 0.25f);
            //t.DrawInfo.Center = Vector2.Zero;
            t.StartTime = 17f;
        }
Beispiel #2
0
        protected override void InitLevelSpecific()
        {
            Music = new GameMusic();
            Sound = new GameSound();
            Add(Music);
            Add(Sound);

            // pink arthur
            king = new PinkArthur();
            king.PositionAndTarget = PINKARTHUR_POSITION;
            //king.PositionAndTarget = new Vector2(90f,158f); // debug
            Add(king);

            // graphic title/logo
            Spritelet logo = new PixieLogo("title-logo.png");

            logo.Duration            = 8f;
            logo.StartTime           = 13f;
            logo.DrawInfo.LayerDepth = 0.1f;
            Parent.AddNextUpdate(logo);

            SubtitleText t = new SubtitleText();

            t.AddText("Knights of honor!", 4f);
            t.AddText("Follow me! Together we will\nrescue Arthur, our King.", 4f);
            t.AddText("(Knights:)\nFOR JUSTICE! FOR THE KING!!", 4f).DrawInfo.DrawColor = Color.RoyalBlue;
            Subtitles.Show(0, t);
            t.StartTime = 1f;

            t = new SubtitleText();
            t.IsAutoPosition = true;
            t.ScaleVector    = new Vector2(1f, 1f);
            t.ShadowVector   = new Vector2(1f, 1f);
            t.Motion.Scale   = 0.5f;
            t.StartTime      = logo.StartTime + logo.Duration + 0.6f;
            t.AddText("Galad the Golden, you must rescue Pink Arthur...", 5f);
            t.AddText("...from the clutches of the evil Red Guard.", 5f);
            t.AddText("The Fourteen Kobalt Knights will aid you!", 5f);
            t.AddText("Arthur was taken deep into Red's Keep...", 5f);
            t.AddText("...where rumors say the Giant Red Sorceress lives.", 5f);
            t.AddText("Get him out and take him back, chivalrous knight!", 5f);
            t.AddText("", 1f);
            t.AddText("Press F1 for controls help", 6f);
            t.AddText("", 1f);
            t.AddText("Coding & art by Indiegame Garden", 4f);
            t.AddText("Sounds by Jute and artisticdude (opengameart.org)", 3f);
            t.AddText("Music by John the Luteist", 3f);
            t.AddText("Sprite by Charles Gabriel (opengameart.org)", 3f);
            t.AddText("Press F1 for controls help", 3f);
            Parent.Add(t);
            t.Motion.Position = new Vector2(Screen.Center.X, 0.08f);
        }
        protected override void InitLevelSpecific()
        {
            Music = new GameMusic();
            Add(Music);

            SubtitleText t = new SubtitleText();

            t.StartTime = 2f;
            t.AddText("Oh no.", 3f);
            t.AddText("", 3f);
            t.AddText("Where am I?", 3f);
            t.AddText("I'm lost.", 3f);
            t.AddText("Can you help me\nget back home?", 3f);
            Parent.Add(t);
        }
Beispiel #4
0
        protected override void InitLevelSpecific()
        {
            Music = new GameMusic();
            Add(Music);

            SubtitleText t = new SubtitleText();

            t.AddText("Always down. I want to go free!", 4.751f).ScaleVector   = new Vector2(1f, 1f);
            t.AddText("See the world, and be ... a tree!", 4.751f).ScaleVector = new Vector2(1f, 1f);
            t.StartTime = 0f;
            Subtitles.Show(0, t);

            tObjCount                 = new SubtitleText(""); tObjCount.ScaleVector = new Vector2(0.8f, 1f);
            tObjCount.StartTime       = 0f;
            tObjCount.Motion.Position = new Vector2(Screen.Width - 0.25f, 0.035f);
            tObjCount.Visible         = false;
            Subtitles.Show(-2, tObjCount);
        }
Beispiel #5
0
        protected override void InitLevelSpecific()
        {
            Music = new GameMusic();
            Sound = new GameSound();

            // princess

            /*
             * Princess p = new Princess();
             * p.PositionAndTarget = PRINCESS_POSITION;
             * //p.PositionAndTarget = new Vector2(90f,158f); // debug
             * Add(p);
             */

            SubtitleText t = new SubtitleText();

            t.AddText("COMPANIONS!", 4f);
            t.AddText("Follow me! Together, we will rescue\nthe Princess!", 4f);
            t.AddText("Squash those Red Guards...!", 4f);
            Subtitles.Show(0, t);
            t.StartTime = 1f;

            t = new SubtitleText();
            t.AddText("Quest for the Pixel Princess XIV", 5f);
            t.AddText("You, Galad the Golden, must rescue the Pink Princess once more...", 5f);
            t.AddText("...from the clutches of the evil Red Guard.", 5f);
            t.AddText("The Fourteen Cobalt Companions have come to your aid!", 5f);
            t.AddText("The princess was taken into Red's Keep.", 5f);
            t.AddText("Get her out, valiant knight!", 5f);
            t.AddText("", 1f);
            t.AddText("Arrows / WASD = move, SPACE = Companion's attack, X = Use Spell", 5f);
            t.AddText("", 1f);
            t.AddText("Coding & art by Indiegame Garden (IndiegameGarden.com)", 4f);
            t.AddText("Sounds by Jute and artisticdude (opengameart.org)", 4f);
            t.AddText("Music by you-may-know-who (guess!)", 4f);
            t.AddText("Sprite by Charles Gabriel (opengameart.org)", 4f);
            t.AddText("FMOD Audio engine (c) Firelight Technologies 2004-2013 (fmod.org)", 4f);

            var e = GameFactory.CreateSubtitle(t);

            t.ScaleVector = new Vector2(0.5f, 0.5f);
            e.GetComponent <PositionComp>().Position2D = new Vector2(Screen.Center.X, 0.08f);
            t.StartTime = 13f;
        }
Beispiel #6
0
        /// <summary>
        /// called when player wins game
        /// </summary>
        protected void PixieHasWon()
        {
            SubtitleText t = new SubtitleText();

            t.AddText("YOU WIN!", 5f);
            t.AddText("The princess\nis rescued.", 4f);
            t.AddText("", 2f);
            t.AddText("But wait a minute...", 3f);
            t.AddText("How do we get out??", 3f);
            t.AddText("*THE END*", 3f);
            Subtitles.Show(6, t);
            hasWon = true;
        }
        protected override void InitLevelSpecific()
        {
            Music = new GameMusic();
            Add(Music);

            SubtitleText t = new SubtitleText();

            t.AddText("Don't you just hate\ntitle screens?", 4f);
            t.AddText("Me too. I'd rather\nbe in the game.", 3f);
            t.AddText("", 2f);
            t.AddText("I'm Pixie, by the way.", 2.6f);
            t.AddText("Look, I'm a pixel!", 2.6f);
            t.AddText("Push the arrows to\nhelp me a bit.", 3f);
            t.StartTime = 2f;
            Subtitles.Show(0, t);
        }
        /// <summary>
        /// called when player wins game
        /// </summary>
        protected void PixieHasWon()
        {
            SubtitleText t = new SubtitleText();

            t.AddText("We DID IT!", 3f);
            t.AddText("I found my friends!", 3f);
            t.AddText("Hi, Trixie!", 3f);
            t.AddText("Hi, Dixie!", 3f);
            t.AddText("Hi, everyone!", 3f);
            t.AddText("This is...", 3f);
            t.AddText("it's...", 2f);
            t.AddText("AMAZING!!!", 9f);
            t.AddText("", 9f);
            t.AddText("And now, bring...", 3f);
            t.AddText("...me back to the entrance!", 4f);
            t.AddText("", 1f);
            t.AddText("JUST KIDDING :-)", 3f);
            t.AddText("", 7f);
            t.AddText("See you in another\ngreat Pixie game:", 3f);

            const float showTitleDuration = 5.5f;

            t.AddText("Pixie: Escape from the\n  Game Art Graveyard", showTitleDuration);
            t.AddText("         Pixie vs.\nThe Shader Legions", showTitleDuration);
            t.AddText("Pixie Goes Retro", showTitleDuration);
            t.AddText(" Pixie's Journey\nto the Cuda Core", showTitleDuration);
            t.AddText("Pixie and the City", showTitleDuration);
            Subtitles.Show(10, t);
            //Motion.ScaleTarget = 3f;
            //Motion.ScaleSpeed = 0.04f;
            Motion.ZoomTarget       = 0.15f;
            Motion.ZoomSpeed        = 0.0007f;
            Motion.ZoomCenterTarget = pixie.Motion;
            //Motion.ZoomCenter = Screen.Center;
            Background.Target      = new Vector2(Background.Texture.Width / 2, Background.Texture.Height / 2);
            Background.TargetSpeed = 0.5f;
            Background.Velocity    = 0.51f;
            hasWon = true;
            isBackgroundScrollingOn = false;
        }