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 touchDown(DTouch touch)
        {
            label.run(pulse, "fadeInOut");

            DSpriteNode spriteNode = spinnyNode();

            spriteNode.color    = Color.Green;
            spriteNode.position = touch.locationIn(this);
            addChild(spriteNode);
        }