Example #1
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);
        }
Example #2
0
        protected void TestVortexEffect()
        {
            VortexEffect ve = new VortexEffect("Effects/CurvedVortex", "ball-supernova2");
            ve.Position = new Vector2(0.2f, 0.5f);
            ve.VortexVelocity = 0.123f;
            ve.NoiseLevel = 0.05f;
            ve.Duration = 25f;
            ve.LayerDepth = 0.9f;
            //ve.Scale = 0.3f;
            gameletsRoot.Add(ve);

        }