Ejemplo n.º 1
0
        protected override void InitToys()
        {
            base.InitToys();
            Vector2 p;

            for (int i = 0; i < 10; i++)
            {
                Toy t = new SpeedModifyToy(2f);
                t.UsesLeft          = 3;
                p                   = PIXIE_STARTING_POS + new Vector2(RandomMath.RandomBetween(10f, 50f), RandomMath.RandomBetween(-40f, 40f));
                t.PositionAndTarget = p;
                Add(t);
            }

            // test paint
            Toy pt = new PaintToy();

            p = PIXIE_STARTING_POS + new Vector2(3f, 0f);
            pt.PositionAndTarget = p;
            Add(pt);

            // test zoomout
            Toy zo = new ZoomOutToy();

            p = PIXIE_STARTING_POS + new Vector2(5f, 1f);
            zo.PositionAndTarget = p;
            Add(zo);

            // test bomb
            Toy bo = new BombToy();

            p = PIXIE_STARTING_POS + new Vector2(-1f, 5f);
            bo.PositionAndTarget = p;
            Add(bo);

            // music credits object
            Toy musicMsg = new MusicCreditsToy();

            musicMsg.PositionAndTarget = new Vector2(2f, 36f);
            Add(musicMsg);

            Toy invisToy = new InvisibilityToy();

            invisToy.PositionAndTarget = PIXIE_STARTING_POS + new Vector2(20f, 0f);
            Add(invisToy);

            // attach test
            //test.AttachmentPosition = new Vector2(3f, 0f);
            //pixie.Add(test);
        }
Ejemplo n.º 2
0
        protected override void InitToys()
        {
            base.InitToys();
            Vector2 p;
            Toy     t;

            t = new ZoomOutToy(); p = new Vector2(70f, 48f); t.PositionAndTarget = p; Add(t);
            t = new ZoomOutToy(); p = new Vector2(93f, 9f); t.PositionAndTarget = p; Add(t);
            t = new ZoomOutToy(); p = new Vector2(17f, 13f); t.PositionAndTarget = p; Add(t);
            t = new ZoomOutToy(); p = new Vector2(117f, 29f); t.PositionAndTarget = p; Add(t);
            t = new ZoomOutToy(); p = new Vector2(73f, 86f); t.PositionAndTarget = p; Add(t);
            t = new SpeedModifyToy(2f); p = new Vector2(61f, 9f); t.PositionAndTarget = p; Add(t);
            t = new SpeedModifyToy(2f); p = new Vector2(109f, 65f); t.PositionAndTarget = p; Add(t);
            t = new ZoomOutToy(); p = new Vector2(121f, 13f); t.PositionAndTarget = p; Add(t);
            t = new SpeedModifyToy(2f); p = new Vector2(46f, 30f); t.PositionAndTarget = p; Add(t);
            t = new SpeedModifyToy(2f); p = new Vector2(13f, 93f); t.PositionAndTarget = p; Add(t);
            t = new SpeedModifyToy(2f); p = new Vector2(121f, 94f); t.PositionAndTarget = p; Add(t);
            t = new ZoomOutToy(); p = new Vector2(29f, 113f); t.PositionAndTarget = p; Add(t);
            t = new SpeedModifyToy(2f); p = new Vector2(53f, 117f); t.PositionAndTarget = p; Add(t);
            t = new ZoomOutToy(); p = new Vector2(105f, 98f); t.PositionAndTarget = p; Add(t);
        }