Example #1
0
        public void SpinBullet()
        {
            sound spin = new sound();

            spin.spin_sound();
            playerGun[Chamber] = 1;
        }
Example #2
0
        public void LoadBullet()
        {
            sound load = new sound();

            load.load_sound();
            Chamber = ran.Next(1, 7);
        }
Example #3
0
        private void btnstart_Click(object sender, EventArgs e)
        {
            sound click_sound = new sound();

            click_sound.click_sound();
            Form2 frm = new Form2(box1.Text);

            frm.Show();
            this.Hide();
        }
Example #4
0
        private void btnshoot_Click(object sender, EventArgs e)
        {
            sound shootMe = new sound();

            shootMe.shoot();
            pictureBox3.Show();
            round_count();
            chamber_count++;


            if (Chamber == 0)


            {
                MessageBox.Show("there is no bullet it automatically restart the game");
                Restart();
            }

            if (playerGun[chamber_count] == 1)
            {
                MessageBox.Show("Bang - You are dead\nBetter Lucks Next Time...\n\n***Restart game * **");
                Restart();
            }
            else
            {
                MessageBox.Show("Bang - You survived");
                total_score     += 100; //User get 100 points each time they survived
                label_score.Text = " Total Score: " + total_score;
            }
            if (round == 2)

            {
                MessageBox.Show("game over \nYou won \n you shot more than 2 times and the bullet has not been fired...\n\n*** Restart Game * **");
                Restart();
            }
        }
Example #5
0
        private void Form1_Load(object sender, EventArgs e)
        {
            sound play_back_sound = new sound();

            play_back_sound.play_back_sound();
        }