Exemplo n.º 1
0
        //Metod koj generira topcinja za dadenoto nivo
        public override void GenerateBalls()
        {
            Ball ball = new GreenBall(new Point(Width / 10, 2 * Height / 5), Width, Height);

            AddBall(ball);
            ball = new GreenBall(new Point((4 * Width) / 10, Height / 5), Width, Height);
            AddBall(ball);
            ball = new BlueBall(new Point((6 * Width) / 10, 3 * Height / 5), Width, Height);
            AddBall(ball);
        }
        public override List <Ball> SplitBall(Point p)
        {
            List <Ball> NewBalls = new List <Ball>();
            Ball        one      = new BlueBall(new Point(p.X + 20, p.Y - 10), this.Width, this.Height);

            one.InvertDirection();
            Ball two = new BlueBall(new Point(p.X + 20, p.Y - 10), this.Width, this.Height);

            NewBalls.Add(one);
            NewBalls.Add(two);
            return(NewBalls);
        }
Exemplo n.º 3
0
        //Metod koj generira topcinja za dadenoto nivo
        public override void GenerateBalls()
        {
            Ball ball = new GreenBall(new Point(Width / 2, Height / 12), Width, Height);

            ball.InvertDirection();
            AddBall(ball);
            ball = new BlueBall(new Point(Width / 2, Height / 12), Width, Height);
            AddBall(ball);
            ball = new GreenBall(new Point(Width / 2, Height / 12), Width, Height);
            AddBall(ball);
            ball = new BlueBall(new Point(Width / 2, Height / 12), Width, Height);
            ball.InvertDirection();
            AddBall(ball);
        }
Exemplo n.º 4
0
        //Metod koj generira topcinja za dadenoto nivo

        public override void GenerateBalls()
        {
            Ball ball = new GreenBall(new Point((8 * Width) / 13, (2 * Height) / 12), Width, Height);

            AddBall(ball);
            ball = new BlueBall(new Point((8 * Width) / 13, (3 * Height) / 12), Width, Height);
            AddBall(ball);
            ball = new GreenBall(new Point((8 * Width) / 13, (4 * Height) / 12), Width, Height);
            AddBall(ball);
            ball = new BlueBall(new Point((8 * Width) / 13, (5 * Height) / 12), Width, Height);
            AddBall(ball);
            ball = new GreenBall(new Point((8 * Width) / 13, (6 * Height) / 12), Width, Height);
            AddBall(ball);
            ball = new RedBall(new Point((8 * Width) / 13, (7 * Height) / 12), Width, Height);
            AddBall(ball);
        }
Exemplo n.º 5
0
        //Metod koj generira topcinja za dadenoto nivo
        public override void GenerateBalls()
        {
            Ball ball = new GreenBall(new Point(2 * this.Width / 20, 2 * this.Width / 17), Width, Height);

            AddBall(ball);
            ball = new BlueBall(new Point(4 * this.Width / 20, 4 * this.Width / 17), Width, Height);
            AddBall(ball);
            ball = new GreenBall(new Point(6 * this.Width / 20, 2 * this.Width / 17), Width, Height);
            AddBall(ball);
            ball = new BlueBall(new Point(8 * this.Width / 20, 4 * this.Width / 17), Width, Height);
            AddBall(ball);
            ball = new GreenBall(new Point(10 * this.Width / 20, 2 * this.Width / 17), Width, Height);
            AddBall(ball);
            ball = new BlueBall(new Point(12 * this.Width / 20, 4 * this.Width / 17), Width, Height);
            AddBall(ball);
            ball = new GreenBall(new Point(14 * this.Width / 20, 2 * this.Width / 17), Width, Height);
            AddBall(ball);
            ball = new BlueBall(new Point(16 * this.Width / 20, 4 * this.Width / 17), Width, Height);
            AddBall(ball);
            ball = new GreenBall(new Point(18 * this.Width / 20, 2 * this.Width / 17), Width, Height);
            AddBall(ball);
        }