예제 #1
0
파일: Form2.cs 프로젝트: shubh0786/russian
        public void SpinBullet()
        {
            sound spin = new sound();

            spin.spin_sound();
            playerGun[Chamber] = 1;
        }
예제 #2
0
파일: Form2.cs 프로젝트: shubh0786/russian
        public void LoadBullet()
        {
            sound load = new sound();

            load.load_sound();
            Chamber = ran.Next(1, 7);
        }
예제 #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();
        }
예제 #4
0
파일: Form2.cs 프로젝트: shubh0786/russian
        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();
            }
        }
예제 #5
0
        private void Form1_Load(object sender, EventArgs e)
        {
            sound play_back_sound = new sound();

            play_back_sound.play_back_sound();
        }