Esempio n. 1
0
        public TitleScreen()
        {
            bg = new RotatingBackground("psych");
            bg.Motion.Scale = 20.0f;
            bg.StartTime    = 0f;// 9.09f;
            Add(bg);

            pixie = new Pixie();
            pixie.Motion.Position = new Vector2(0.666f, 0.0f);
            pixie.Motion.Scale    = 20.0f;
            pixie.Duration        = TIME_LOGO_APPEAR;
            Add(pixie);

            cuteText = new SubtitleText(new string[] { "She's pink...", "   She's cute...", "      She's all square!" },
                                        new float[] { 1.5f, 3.5f, 5.5f },
                                        false);
            cuteText.Motion.Position = new Vector2(0.26f, 0.62f);
            cuteText.Duration        = TIME_LOGO_APPEAR;
            Add(cuteText);

            /*
             * helpText = new SubtitleText("SPACE  Play!\n  C         Credits\n ESC       Exit");
             * helpText.StartTime = 13.5f;
             * helpText.Motion.Scale = 0.7f;
             * helpText.DrawInfo.DrawColor = Color.AntiqueWhite;
             * helpText.Motion.Position = new Vector2(0.2f, 0.6f);
             * Add(helpText);
             */
            helpText                 = new Spritelet("showControls");
            helpText.StartTime       = TIME_LOGO_APPEAR;
            helpText.Motion.Scale    = 1f;
            helpText.Motion.Position = new Vector2(0.666f, 0.85f);
            Add(helpText);


            pixieLogo = new PixieLogo("pixielogo");
            pixieLogo.Motion.Scale    = 20.0f;
            pixieLogo.Motion.Position = new Vector2(0.666f, 0.35f);
            pixieLogo.StartTime       = TIME_LOGO_APPEAR;
            Add(pixieLogo);

            MotionB = new MotionBehavior();
            Add(MotionB);

            creditsScreen = new Thing("credits.png");
            Add(creditsScreen);
            creditsScreen.Visible = false;

            /*
             * ttLogo = new Spritelet("tt-logo-4");
             * ttLogo.Motion.Position = new Vector2(1.05f, 0.02f);
             * Add(ttLogo);
             */
        }
Esempio n. 2
0
        public FinalScreen()
        {
            finalText = new SubtitleText(TXT, TXT_TIMINGS, false);
            finalText.SubtitleFont    = TTengineMaster.ActiveGame.Content.Load <SpriteFont>("m06_quadra");
            finalText.Motion.Position = new Vector2(0.1f, 0.32f);
            finalText.ScaleVector     = new Vector2(1f, 1f);
            finalText.Shadow          = false;
            Add(finalText);

            pixieLogo = new PixieLogo("finallogo");
            Add(pixieLogo);
            pixieLogo.Motion.Scale = 1f;
            //pixieLogo.bg.Motion.Scale = 2f;
            pixieLogo.Motion.Position = new Vector2(0.666f, 0.1f);
            pixieLogo.StartTime       = 0f;

            bg = new RotatingBackground("psych");
            bg.Motion.Scale = 20.0f;
            Add(bg);

            this.Duration = 74f;
        }