Ejemplo n.º 1
0
        public override void Initialize()
        {
            locations[0] = new Point(boardPosition.x - 10, boardPosition.y-20);
              locations[1] = new Point(boardPosition.x - 50, boardPosition.y);
              locations[2] = new Point(boardPosition.x - 80, boardPosition.y);

              bubbles[0] = BubbleCreator.createRandomBubble(locations[0]);
              childComponents.Add(bubbles[0]);

              bubbles[1] = BubbleCreator.createRandomBubble(locations[1]);
              childComponents.Add(bubbles[1]);

              bubbles[2] = BubbleCreator.createRandomBubble(locations[2]);
              childComponents.Add(bubbles[2]);

              arrow = new Arrow(Game, arrowTexture, new Point(locations[0].x, locations[0].y), new Angle(0));
              childComponents.Add(arrow);
              base.Initialize();
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            locations[0] = new Point(boardPosition.x, boardPosition.y, boardPosition.z);
              locations[1] = new Point(boardPosition.x - 4, boardPosition.y, boardPosition.z);
              locations[2] = new Point(boardPosition.x - 8, boardPosition.y, boardPosition.z);

              bubbles[0] = BubbleCreator.createRandomBubble(locations[0]);
              childComponents.Add(bubbles[0]);

              bubbles[1] = BubbleCreator.createRandomBubble(locations[1]);
              childComponents.Add(bubbles[1]);

              bubbles[2] = BubbleCreator.createRandomBubble(locations[2]);
              childComponents.Add(bubbles[2]);

              arrow = new Arrow(Game, new Point(locations[0].x, locations[0].y, boardPosition.z), new Angle(0), new Angle(zSloap));
              childComponents.Add(arrow);
              base.Initialize();
        }