Example #1
0
        static plate NewRectangle(int speed)
        {
            plate r = new plate();

            r.speed = speed;
            return(r);
        }
Example #2
0
        static List <plate> StartGame(List <plate> plates)
        {
            plates.Clear();
            for (int i = 0; i < 10; i++)
            {
                plate p = new plate();
                p.rect.y = i * 80;
                plates.Add(p);
            }
            plate p1 = new plate()
            {
                rect = new Rectangle(0, 850, 800, 50)
            };

            plates.Add(p1);
            return(plates);
        }