Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            int formSizeW = this.ClientSize.Width;

            // 魚のインスタンス//
            int x = pictureBoxIwashi.Location.X;
            int y = pictureBoxIwashi.Location.Y;

            iwashi = new Iwashi(x, y, 20, formSizeW, pictureBoxIwashi);
            x      = pictureBoxUtubo.Location.X;
            y      = pictureBoxUtubo.Location.Y;
            utubo  = new Utubo(x, y, 10, formSizeW, pictureBoxUtubo);
            x      = pictureBoxAnkou.Location.X;
            y      = pictureBoxAnkou.Location.Y;
            ankou  = new Ankou(x, y, 10, formSizeW, pictureBoxAnkou);
        }