示例#1
0
        public void update()
        {
            game g = new game(5);

            gameObject obj1 = new gameObject(enemy1);
            gameObject obj2 = new gameObject(enemy2);

            g.addObject(obj1);
            g.addObject(obj2);
        }
        public void addObject(gameObject objs)
        {
            PictureBox p = objs.return_picturebox();

            p.Top = p.Top + this.speed;
        }