private void Form1_Load(object sender, EventArgs e) { timer5.Start(); yilan = new Yilan(Bas, yem, this, Baslangıc.renkli); yem.Top = rnd.Next(0, 500); yem.Left = rnd.Next(0, 500); }
private void Duvarlı_Load(object sender, EventArgs e) { timer5.Start(); yilan = new Yilan(Bas, yem, this, Baslangıc.renkli); yilan.DuvaraCarpti(pictureBox1, pictureBox2, pictureBox3, pictureBox4); yem.Top = rnd.Next(0, 500); yem.Left = rnd.Next(0, 500); }