Esempio n. 1
0
 public void restart()
 {
     timer1.Enabled = false;
     stopped = true;
     MessageBox.Show("Snake Died, Your score: "+ score);
     SnakeScoreLabel.Text = "0";
     score = 0;
     SpaceBarLabel.Text = "Press Space to Replay";
     snake = new Snake();
     food = new Eater(rn);
 }
Esempio n. 2
0
 public Form1()
 {
     InitializeComponent();
     food = new Eater(rn);
 }