Exemplo n.º 1
0
        void HealthBar()
        {
            //updating healthbarF
            try
            {
                pgbPlayer1.Value = player1Health / 10;
                pgbPlayer2.Value = player2Health / 10;
            }
            catch (Exception EX)
            {
                string message;
                message = player1Health <= 0 ? "Player 1... YOU SUCK!!!" : player2Health <= 0 ? "Player 2... YOU SUCK!!!" : null;
                TmrMove.Stop();

                MessageBox.Show(message);
                Application.Exit();
            }
        }
Exemplo n.º 2
0
 private void BtnStop_Click(object sender, EventArgs e)
 {
     TmrMove.Stop();
 }
Exemplo n.º 3
0
 private void BtnRun_Click(object sender, EventArgs e)
 {
     TmrMove.Start();
 }