示例#1
0
        public void Onstart()
        {
            MakeObstacle();

            Color c = Color.Red;
            Color b = Color.Yellow;

            hero      = new Obstacles(50 - heroSize / 2, 222, heroSize, c);
            objective = new Obstacles(50 - objectiveSize / 2, 222, objectiveSize, b);
        }
示例#2
0
        public void MakeObstacle()
        {
            Color c = Color.Red;



            if (counter % 75 == 0)
            {
                Obstacles newobstacle = new Obstacles(leftI, leftIII, 20, c);


                left.Add(newobstacle);

                Obstacles newobstacle3 = new Obstacles(400, leftII, 20, c);
                middle.Add(newobstacle3);

                Obstacles newobstacle2 = new Obstacles(leftI + gap, leftIII, 20, c);
                right.Add(newobstacle2);
            }
            counter++;
        }