Ejemplo n.º 1
0
 public static void Load()
 {
     __GameObject = new VisualObject[80];
     for (var i = 0; i < __GameObject.Length; i++)
     {
         __GameObject[i] = new VisualObject(
             new Point(600, i * 20),
             new Point(15 - i, 20 - i),
             new Size(20, 20)
             );
     }
 }
Ejemplo n.º 2
0
 public static void Load()
 {
     __GameObjects = new VisualObject[30];
     for (var i = 0; i < __GameObjects.Length / 2; i++)
     {
         __GameObjects[i] = new VisualObject(new Point(600, i * 20), new Point(15 - i, 20 - i), new Size(20, 20));
     }
     for (var i = __GameObjects.Length / 2; i < __GameObjects.Length; i++)
     {
         __GameObjects[i] = new Star(
             new Point(600, (int)(i / 2.0 * 20)),
             new Point(-i, 0),
             10);
     }
 }
Ejemplo n.º 3
0
        public static void Load()
        {
            __GameObjects = new VisualObject[30];
            for (var i = 0; i < __GameObjects.Length / 2; i++)
            {
                __GameObjects[i] = new VisualObject(
                    new Point(400, i * 2),
                    new Point(15 - i, 20 - i),
                    new Size(20, 20));
            }

            for (var i = __GameObjects.Length / 2; i < __GameObjects.Length; i++)
            {
                __GameObjects[i] = new Star(
                    new Point(400, i * 2),
                    new Point(-i, 20),
                    20);
            }

            //var image = Properties.Resources.asteroid;
            //var image_object = new ImageObject(new Point(0, 5), new Point(5, 7), new Size(70, 70), image);
        }