Beispiel #1
0
        public TitleScreen()
            : base(new TitleScreenState())
        {
            testTxt = new SubtitleText("TT1 title screen");
            Add(testTxt);

            GoLEffect gol = new GoLEffect("ttlogo-gol");
            gol.LayerDepth = 0f;
            gol.Position = new Vector2(0.6f, 0.4f);
            gol.Scale = 4.0f;
            gol.Rotate = 0.0f;
            gol.Add(new SineModifier(delegate(float val) { gol.ScaleModifier *= val; }, 0.05f, 140f / 60f / 16f)); // 140 / 60 * 1/16
            Add(gol);
        }
Beispiel #2
0
        public override void CreateContent()
        {
            if (RunningGameState.IsXNAHiDef)
            {
                this.Add(new StarfieldEffect(0.4f));
                this.Add(new PowerRingsSingleton());

                VortexEffect ve = new VortexEffect("CurvedVortex", "clouds");
                //this.Add(ve);
                ve.Position = new Vector2(0.2f, 0.5f);
                ve.VortexVelocity = 0.04f;
                ve.NoiseLevel = 0.03f;
                ve.Active = true;
                ve.Duration = 10f;

                BoomDepthEffect b = new BoomDepthEffect();
                b.StartTime = 3f;
                b.Ampl = 0.2f;
                //this.Add(b);

                MandelBackground mb = new MandelBackground();
                //this.Add(mb);

                this.Add(new StarCloudsEffect());

            }

            // test txt
            SubtitleText st = new SubtitleText("     Captain, MAYDAY!\nWe're running out of NRG!");
            st.Position = new Vector2(0.3f, 0.5f);
            st.Duration = 12f;
            st.StartTime = 2f;
            //this.Add(st);

            MegaText mt = new MegaText("EXPERIMENT", "RkaFont");
            mt.Position = new Vector2(0.2f, 0.4f);
            mt.Duration = 12f;
            mt.StartTime = 4f;
            this.Add(mt);

            ScreenShake shake = new ScreenShake(0.005f, 0.005f, 3.3f);
            shake.StartTime = 5f;
            //this.Add(shake);

            PlanetTexture p = new PlanetTexture();
            p.Position = new Vector2(0.65f, 0.5f);
            p.LayerDepth = 0.0f;
            Add(p);
        }
Beispiel #3
0
 protected override void OnInit()
 {
     testTxt = new SubtitleText("TTR LevelIntro");
     this.Add(testTxt);
 }