示例#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);
        }
示例#2
0
        protected void TestGOLLogo()
        {
            GoLEffect gol = new GoLEffect("ttlogo-gol");
            gol.LayerDepth = 0.5f;
            gol.Position = new Vector2(0.6f, 0.4f);
            gol.Scale = 1.0f;
            gol.Rotate = 0.0f;
            gol.Add(new SineModifier(delegate(float val) { gol.ScaleModifier *= val;  }, 0.05f, 140f / 60f / 16f)); // 140 / 60 * 1/16
            gameletsRoot.Add(gol);

        }