Example #1
0
 private void restartToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (isGameWorking)
     {
         neo = new NeoSnake(pole_gry.Width, pole_gry.Height);
         frt = new Fruit(neo.getSegment());
     }
 }
Example #2
0
 private void startToolStripMenuItem_Click(object sender, EventArgs e)
 {
     isGameWorking = true;
     isFirstLaunch = false;
     pauzaToolStripMenuItem.Enabled   = true;
     restartToolStripMenuItem.Enabled = true;
     neo = new NeoSnake(pole_gry.Width, pole_gry.Height);
     frt = new Fruit(neo.getSegment());
 }