Exemplo n.º 1
0
 // Game load
 public FormBig()
 {
     InitializeComponent();
     is_running  = true;
     display_out = false;
     ExitPanel.Hide();
     Player.Location    = new Point(200, 200);
     TimerTick.Interval = 20;
     score                  = 0;
     label2.Location        = new Point(37, 24);
     ScorePosition.Location = new Point(123, 24);
 }
Exemplo n.º 2
0
 // Restart the game
 private void Restart_Click(object sender, EventArgs e)
 {
     FinalScore.Text = 0.ToString();
     is_running      = true;
     display_out     = false;
     ExitPanel.Hide();
     score           = 0;
     Player.Location = new Point(200, 200);
     hidePillars(false);
     TimerTick.Enabled = true;
     pillarsResetPositions();
     speed = 10;
 }