Beispiel #1
0
        internal override void load()
        {
            size = new Vector2(1024, 768);

            DLabelNode.defaultLoadFont = GameFonts.openSansLight;

            label            = new DLabelNode("", 144);
            label.position.X = size.X / 2;
            label.position.Y = size.Y / 2;
            label.alpha      = 0.0f;
            label.run(DAction.fadeIn(2.0f));
            addChild(label);

            pulse = DAction.group(new[] {
                DAction.sequence(new[] {
                    DAction.scaleBy(0.6f, 0.3f),
                    DAction.scaleTo(1.0f, 0.3f)
                }),

                DAction.sequence(new[] {
                    DAction.fadeOut(0.3f),
                    DAction.fadeIn(0.3f)
                })
            });
        }
Beispiel #2
0
        internal override void load()
        {
            base.load();

            DGame.current.samplerState = SamplerState.PointClamp;

            DControl title;

            title = new DControl("title", 455, 352);
            title.setAlignment(HorizontalAlignment.center, VerticalAlignment.center);
            addChild(title);

            DLabelNode label;

            //label = new DLabelNode("Press Start",
            //                  size.X / 2,
            //                  size.Y / 2 + 300,
            //                  HorizontalAlignment.center,
            //                  VerticalAlignment.center,
            //                  FontName.kenPixel,
            //                  FontSize.size16);
            label = new DLabelNode("Press Start", 16);
            addChild(label);
        }