diff --git a/Game_Pikachu/Game_Pikachu.csproj b/Game_Pikachu/Game_Pikachu.csproj
index 490ccee..c34799a 100644
--- a/Game_Pikachu/Game_Pikachu.csproj
+++ b/Game_Pikachu/Game_Pikachu.csproj
@@ -177,6 +177,8 @@
+
+
diff --git a/Game_Pikachu/NewSelectForm.Designer.cs b/Game_Pikachu/NewSelectForm.Designer.cs
index 7936d0d..1af51c1 100644
--- a/Game_Pikachu/NewSelectForm.Designer.cs
+++ b/Game_Pikachu/NewSelectForm.Designer.cs
@@ -38,6 +38,7 @@ private void InitializeComponent()
this.buttonGuide = new System.Windows.Forms.PictureBox();
this.buttonContinue = new System.Windows.Forms.PictureBox();
this.buttonStart = new System.Windows.Forms.PictureBox();
+ this.pictureBox6 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
@@ -48,6 +49,7 @@ private void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.buttonGuide)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.buttonContinue)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.buttonStart)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
@@ -55,9 +57,10 @@ private void InitializeComponent()
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.BackgroundImage = global::Game_Pikachu.Properties.Resources.start1;
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.pictureBox1.Location = new System.Drawing.Point(115, 142);
+ this.pictureBox1.Location = new System.Drawing.Point(153, 175);
+ this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(120, 45);
+ this.pictureBox1.Size = new System.Drawing.Size(160, 55);
this.pictureBox1.TabIndex = 10;
this.pictureBox1.TabStop = false;
//
@@ -66,9 +69,10 @@ private void InitializeComponent()
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
this.pictureBox2.BackgroundImage = global::Game_Pikachu.Properties.Resources.exit1;
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.pictureBox2.Location = new System.Drawing.Point(115, 342);
+ this.pictureBox2.Location = new System.Drawing.Point(153, 421);
+ this.pictureBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(120, 45);
+ this.pictureBox2.Size = new System.Drawing.Size(160, 55);
this.pictureBox2.TabIndex = 14;
this.pictureBox2.TabStop = false;
//
@@ -77,9 +81,10 @@ private void InitializeComponent()
this.pictureBox3.BackColor = System.Drawing.Color.Transparent;
this.pictureBox3.BackgroundImage = global::Game_Pikachu.Properties.Resources.about1;
this.pictureBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.pictureBox3.Location = new System.Drawing.Point(115, 292);
+ this.pictureBox3.Location = new System.Drawing.Point(153, 359);
+ this.pictureBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox3.Name = "pictureBox3";
- this.pictureBox3.Size = new System.Drawing.Size(120, 45);
+ this.pictureBox3.Size = new System.Drawing.Size(160, 55);
this.pictureBox3.TabIndex = 13;
this.pictureBox3.TabStop = false;
//
@@ -88,9 +93,10 @@ private void InitializeComponent()
this.pictureBox4.BackColor = System.Drawing.Color.Transparent;
this.pictureBox4.BackgroundImage = global::Game_Pikachu.Properties.Resources.guide1;
this.pictureBox4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.pictureBox4.Location = new System.Drawing.Point(115, 242);
+ this.pictureBox4.Location = new System.Drawing.Point(153, 298);
+ this.pictureBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox4.Name = "pictureBox4";
- this.pictureBox4.Size = new System.Drawing.Size(120, 45);
+ this.pictureBox4.Size = new System.Drawing.Size(160, 55);
this.pictureBox4.TabIndex = 12;
this.pictureBox4.TabStop = false;
//
@@ -99,9 +105,10 @@ private void InitializeComponent()
this.pictureBox5.BackColor = System.Drawing.Color.Transparent;
this.pictureBox5.BackgroundImage = global::Game_Pikachu.Properties.Resources.continue1;
this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.pictureBox5.Location = new System.Drawing.Point(115, 192);
+ this.pictureBox5.Location = new System.Drawing.Point(153, 236);
+ this.pictureBox5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox5.Name = "pictureBox5";
- this.pictureBox5.Size = new System.Drawing.Size(120, 42);
+ this.pictureBox5.Size = new System.Drawing.Size(160, 52);
this.pictureBox5.TabIndex = 11;
this.pictureBox5.TabStop = false;
//
@@ -110,9 +117,10 @@ private void InitializeComponent()
this.buttonExit.BackColor = System.Drawing.Color.Transparent;
this.buttonExit.BackgroundImage = global::Game_Pikachu.Properties.Resources.exit2;
this.buttonExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.buttonExit.Location = new System.Drawing.Point(115, 342);
+ this.buttonExit.Location = new System.Drawing.Point(153, 421);
+ this.buttonExit.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.buttonExit.Name = "buttonExit";
- this.buttonExit.Size = new System.Drawing.Size(120, 45);
+ this.buttonExit.Size = new System.Drawing.Size(160, 55);
this.buttonExit.TabIndex = 19;
this.buttonExit.TabStop = false;
this.buttonExit.Click += new System.EventHandler(this.buttonExit_Click);
@@ -122,9 +130,10 @@ private void InitializeComponent()
this.buttonAbout.BackColor = System.Drawing.Color.Transparent;
this.buttonAbout.BackgroundImage = global::Game_Pikachu.Properties.Resources.about2;
this.buttonAbout.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.buttonAbout.Location = new System.Drawing.Point(115, 292);
+ this.buttonAbout.Location = new System.Drawing.Point(153, 359);
+ this.buttonAbout.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.buttonAbout.Name = "buttonAbout";
- this.buttonAbout.Size = new System.Drawing.Size(120, 45);
+ this.buttonAbout.Size = new System.Drawing.Size(160, 55);
this.buttonAbout.TabIndex = 18;
this.buttonAbout.TabStop = false;
this.buttonAbout.Click += new System.EventHandler(this.buttonAbout_Click);
@@ -134,9 +143,10 @@ private void InitializeComponent()
this.buttonGuide.BackColor = System.Drawing.Color.Transparent;
this.buttonGuide.BackgroundImage = global::Game_Pikachu.Properties.Resources.guide2;
this.buttonGuide.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.buttonGuide.Location = new System.Drawing.Point(115, 242);
+ this.buttonGuide.Location = new System.Drawing.Point(153, 298);
+ this.buttonGuide.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.buttonGuide.Name = "buttonGuide";
- this.buttonGuide.Size = new System.Drawing.Size(120, 45);
+ this.buttonGuide.Size = new System.Drawing.Size(160, 55);
this.buttonGuide.TabIndex = 17;
this.buttonGuide.TabStop = false;
this.buttonGuide.Click += new System.EventHandler(this.buttonGuide_Click);
@@ -146,9 +156,10 @@ private void InitializeComponent()
this.buttonContinue.BackColor = System.Drawing.Color.Transparent;
this.buttonContinue.BackgroundImage = global::Game_Pikachu.Properties.Resources.continue2;
this.buttonContinue.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.buttonContinue.Location = new System.Drawing.Point(115, 192);
+ this.buttonContinue.Location = new System.Drawing.Point(153, 236);
+ this.buttonContinue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.buttonContinue.Name = "buttonContinue";
- this.buttonContinue.Size = new System.Drawing.Size(120, 42);
+ this.buttonContinue.Size = new System.Drawing.Size(160, 52);
this.buttonContinue.TabIndex = 16;
this.buttonContinue.TabStop = false;
this.buttonContinue.Click += new System.EventHandler(this.buttonContinue_Click);
@@ -158,20 +169,34 @@ private void InitializeComponent()
this.buttonStart.BackColor = System.Drawing.Color.Transparent;
this.buttonStart.BackgroundImage = global::Game_Pikachu.Properties.Resources.start2;
this.buttonStart.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.buttonStart.Location = new System.Drawing.Point(115, 142);
+ this.buttonStart.Location = new System.Drawing.Point(153, 175);
+ this.buttonStart.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.buttonStart.Name = "buttonStart";
- this.buttonStart.Size = new System.Drawing.Size(120, 45);
+ this.buttonStart.Size = new System.Drawing.Size(160, 55);
this.buttonStart.TabIndex = 15;
this.buttonStart.TabStop = false;
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
//
+ // pictureBox6
+ //
+ this.pictureBox6.BackColor = System.Drawing.Color.Transparent;
+ this.pictureBox6.BackgroundImage = global::Game_Pikachu.Properties.Resources.mute1;
+ this.pictureBox6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.pictureBox6.Location = new System.Drawing.Point(944, 23);
+ this.pictureBox6.Name = "pictureBox6";
+ this.pictureBox6.Size = new System.Drawing.Size(49, 49);
+ this.pictureBox6.TabIndex = 20;
+ this.pictureBox6.TabStop = false;
+ this.pictureBox6.Click += new System.EventHandler(this.pictureBox6_Click);
+ //
// NewSelectForm
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::Game_Pikachu.Properties.Resources.tro_choi_pikachu_game;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.ClientSize = new System.Drawing.Size(800, 450);
+ this.ClientSize = new System.Drawing.Size(1067, 554);
+ this.Controls.Add(this.pictureBox6);
this.Controls.Add(this.buttonExit);
this.Controls.Add(this.buttonAbout);
this.Controls.Add(this.buttonGuide);
@@ -182,9 +207,11 @@ private void InitializeComponent()
this.Controls.Add(this.pictureBox4);
this.Controls.Add(this.pictureBox5);
this.Controls.Add(this.pictureBox1);
+ this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "NewSelectForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "NewSelectForm";
+ this.Load += new System.EventHandler(this.NewSelectForm_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
@@ -195,6 +222,7 @@ private void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.buttonGuide)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.buttonContinue)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.buttonStart)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
this.ResumeLayout(false);
}
@@ -210,5 +238,6 @@ private void InitializeComponent()
private System.Windows.Forms.PictureBox buttonGuide;
private System.Windows.Forms.PictureBox buttonContinue;
private System.Windows.Forms.PictureBox buttonStart;
+ private System.Windows.Forms.PictureBox pictureBox6;
}
}
\ No newline at end of file
diff --git a/Game_Pikachu/NewSelectForm.cs b/Game_Pikachu/NewSelectForm.cs
index 01d89db..f5228cb 100644
--- a/Game_Pikachu/NewSelectForm.cs
+++ b/Game_Pikachu/NewSelectForm.cs
@@ -6,6 +6,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Media;
using System.Windows.Forms;
namespace Game_Pikachu
@@ -55,8 +56,21 @@ private void buttonExit_Click(object sender, EventArgs e)
buttonExit.Visible = false;
}
+
#endregion
+ private void pictureBox6_Click(object sender, EventArgs e)
+ {
+ SoundPlayer sound = new SoundPlayer(@"C:\Users\levan\Desktop\Slice bài giảng\Thực tập nhóm\Code\Pikachu\Game_Pikachu\Sounds\101-opening (online-audio-converter.com).wav");
+ sound.LoadAsync();
+ sound.Stop();
+ }
+ private void NewSelectForm_Load(object sender, EventArgs e)
+ {
+ SoundPlayer sound = new SoundPlayer(@"C:\Users\levan\Desktop\Slice bài giảng\Thực tập nhóm\Code\Pikachu\Game_Pikachu\Sounds\101-opening (online-audio-converter.com).wav");
+ sound.LoadAsync();
+ sound.Play();
+ }
}
}
diff --git a/Game_Pikachu/PlayForm.Designer.cs b/Game_Pikachu/PlayForm.Designer.cs
index 4e9d517..9597a3a 100644
--- a/Game_Pikachu/PlayForm.Designer.cs
+++ b/Game_Pikachu/PlayForm.Designer.cs
@@ -41,8 +41,10 @@ private void InitializeComponent()
this.panelContainIcon = new System.Windows.Forms.Panel();
this.buttonPlayAgain = new System.Windows.Forms.PictureBox();
this.buttonExit = new System.Windows.Forms.PictureBox();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.buttonPlayAgain)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.buttonExit)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// label1
@@ -51,9 +53,10 @@ private void InitializeComponent()
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("Jokerman", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Red;
- this.label1.Location = new System.Drawing.Point(12, 71);
+ this.label1.Location = new System.Drawing.Point(16, 87);
+ this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(91, 39);
+ this.label1.Size = new System.Drawing.Size(115, 49);
this.label1.TabIndex = 1;
this.label1.Text = "Điểm";
//
@@ -63,9 +66,10 @@ private void InitializeComponent()
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("Jokerman", 15.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.Red;
- this.label2.Location = new System.Drawing.Point(-6, 188);
+ this.label2.Location = new System.Drawing.Point(-8, 231);
+ this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(111, 31);
+ this.label2.Size = new System.Drawing.Size(140, 39);
this.label2.TabIndex = 2;
this.label2.Text = "Trợ giúp";
//
@@ -75,9 +79,10 @@ private void InitializeComponent()
this.labelMark.BackColor = System.Drawing.Color.Black;
this.labelMark.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelMark.ForeColor = System.Drawing.Color.Lime;
- this.labelMark.Location = new System.Drawing.Point(41, 119);
+ this.labelMark.Location = new System.Drawing.Point(55, 146);
+ this.labelMark.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelMark.Name = "labelMark";
- this.labelMark.Size = new System.Drawing.Size(24, 25);
+ this.labelMark.Size = new System.Drawing.Size(29, 31);
this.labelMark.TabIndex = 3;
this.labelMark.Text = "0";
//
@@ -87,9 +92,10 @@ private void InitializeComponent()
this.labelHelp.BackColor = System.Drawing.Color.Black;
this.labelHelp.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelHelp.ForeColor = System.Drawing.Color.Lime;
- this.labelHelp.Location = new System.Drawing.Point(41, 236);
+ this.labelHelp.Location = new System.Drawing.Point(55, 290);
+ this.labelHelp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelHelp.Name = "labelHelp";
- this.labelHelp.Size = new System.Drawing.Size(24, 25);
+ this.labelHelp.Size = new System.Drawing.Size(29, 31);
this.labelHelp.TabIndex = 4;
this.labelHelp.Text = "5";
//
@@ -100,9 +106,10 @@ private void InitializeComponent()
this.label3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label3.Font = new System.Drawing.Font("Jokerman", 14.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.Red;
- this.label3.Location = new System.Drawing.Point(1, 289);
+ this.label3.Location = new System.Drawing.Point(1, 356);
+ this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(104, 28);
+ this.label3.Size = new System.Drawing.Size(127, 35);
this.label3.TabIndex = 5;
this.label3.Text = "Đổi vị trí";
//
@@ -112,9 +119,10 @@ private void InitializeComponent()
this.labelSwapLocation.BackColor = System.Drawing.Color.Black;
this.labelSwapLocation.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelSwapLocation.ForeColor = System.Drawing.Color.Lime;
- this.labelSwapLocation.Location = new System.Drawing.Point(41, 331);
+ this.labelSwapLocation.Location = new System.Drawing.Point(55, 407);
+ this.labelSwapLocation.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelSwapLocation.Name = "labelSwapLocation";
- this.labelSwapLocation.Size = new System.Drawing.Size(24, 25);
+ this.labelSwapLocation.Size = new System.Drawing.Size(29, 31);
this.labelSwapLocation.TabIndex = 6;
this.labelSwapLocation.Text = "5";
//
@@ -124,9 +132,10 @@ private void InitializeComponent()
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("Jokerman", 20.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Red;
- this.label4.Location = new System.Drawing.Point(151, 4);
+ this.label4.Location = new System.Drawing.Point(201, 5);
+ this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(85, 39);
+ this.label4.Size = new System.Drawing.Size(106, 49);
this.label4.TabIndex = 10;
this.label4.Text = "Time";
//
@@ -134,10 +143,11 @@ private void InitializeComponent()
//
this.progressBarTime.BackColor = System.Drawing.Color.DodgerBlue;
this.progressBarTime.ForeColor = System.Drawing.Color.Gold;
- this.progressBarTime.Location = new System.Drawing.Point(259, 12);
+ this.progressBarTime.Location = new System.Drawing.Point(345, 15);
+ this.progressBarTime.Margin = new System.Windows.Forms.Padding(4);
this.progressBarTime.Maximum = 3000;
this.progressBarTime.Name = "progressBarTime";
- this.progressBarTime.Size = new System.Drawing.Size(480, 20);
+ this.progressBarTime.Size = new System.Drawing.Size(640, 25);
this.progressBarTime.Step = 1;
this.progressBarTime.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
this.progressBarTime.TabIndex = 11;
@@ -150,9 +160,10 @@ private void InitializeComponent()
// panelContainIcon
//
this.panelContainIcon.BackColor = System.Drawing.Color.Transparent;
- this.panelContainIcon.Location = new System.Drawing.Point(109, 46);
+ this.panelContainIcon.Location = new System.Drawing.Point(145, 57);
+ this.panelContainIcon.Margin = new System.Windows.Forms.Padding(4);
this.panelContainIcon.Name = "panelContainIcon";
- this.panelContainIcon.Size = new System.Drawing.Size(630, 362);
+ this.panelContainIcon.Size = new System.Drawing.Size(840, 446);
this.panelContainIcon.TabIndex = 0;
//
// buttonPlayAgain
@@ -160,9 +171,10 @@ private void InitializeComponent()
this.buttonPlayAgain.BackColor = System.Drawing.Color.Transparent;
this.buttonPlayAgain.BackgroundImage = global::Game_Pikachu.Properties.Resources._56641434_2360977737295523_6324701134225145856_n;
this.buttonPlayAgain.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.buttonPlayAgain.Location = new System.Drawing.Point(6, 372);
+ this.buttonPlayAgain.Location = new System.Drawing.Point(8, 458);
+ this.buttonPlayAgain.Margin = new System.Windows.Forms.Padding(4);
this.buttonPlayAgain.Name = "buttonPlayAgain";
- this.buttonPlayAgain.Size = new System.Drawing.Size(97, 36);
+ this.buttonPlayAgain.Size = new System.Drawing.Size(129, 44);
this.buttonPlayAgain.TabIndex = 12;
this.buttonPlayAgain.TabStop = false;
//
@@ -171,20 +183,34 @@ private void InitializeComponent()
this.buttonExit.BackColor = System.Drawing.Color.Transparent;
this.buttonExit.BackgroundImage = global::Game_Pikachu.Properties.Resources.exit;
this.buttonExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.buttonExit.Location = new System.Drawing.Point(745, 5);
+ this.buttonExit.Location = new System.Drawing.Point(993, 6);
+ this.buttonExit.Margin = new System.Windows.Forms.Padding(4);
this.buttonExit.Name = "buttonExit";
- this.buttonExit.Size = new System.Drawing.Size(42, 33);
+ this.buttonExit.Size = new System.Drawing.Size(56, 41);
this.buttonExit.TabIndex = 13;
this.buttonExit.TabStop = false;
//
+ // pictureBox1
+ //
+ this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
+ this.pictureBox1.BackgroundImage = global::Game_Pikachu.Properties.Resources.mute1;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.pictureBox1.Location = new System.Drawing.Point(8, 15);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(65, 39);
+ this.pictureBox1.TabIndex = 14;
+ this.pictureBox1.TabStop = false;
+ this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
+ //
// PlayForm
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoValidate = System.Windows.Forms.AutoValidate.Disable;
this.BackgroundImage = global::Game_Pikachu.Properties.Resources.Fantastic_pokemon_hd_wallpaper_sumsung;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.ClientSize = new System.Drawing.Size(800, 450);
+ this.ClientSize = new System.Drawing.Size(1067, 554);
+ this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.buttonExit);
this.Controls.Add(this.buttonPlayAgain);
this.Controls.Add(this.progressBarTime);
@@ -196,11 +222,13 @@ private void InitializeComponent()
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.panelContainIcon);
+ this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "PlayForm";
this.Text = "PlayForm";
this.Load += new System.EventHandler(this.PlayForm_Load);
((System.ComponentModel.ISupportInitialize)(this.buttonPlayAgain)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.buttonExit)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -220,5 +248,6 @@ private void InitializeComponent()
private System.Windows.Forms.Timer timer;
private System.Windows.Forms.PictureBox buttonPlayAgain;
private System.Windows.Forms.PictureBox buttonExit;
+ private System.Windows.Forms.PictureBox pictureBox1;
}
}
\ No newline at end of file
diff --git a/Game_Pikachu/PlayForm.cs b/Game_Pikachu/PlayForm.cs
index 6f712b8..e22f68b 100644
--- a/Game_Pikachu/PlayForm.cs
+++ b/Game_Pikachu/PlayForm.cs
@@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
-
+using System.Media;
namespace Game_Pikachu
{
public partial class PlayForm : Form
@@ -27,7 +27,16 @@ private void PlayForm_Load(object sender, EventArgs e)
{
// ProgressBar chạy thời gian.
progressBarTime.PerformStep();
+ SoundPlayer sound = new SoundPlayer(@"C:\Users\levan\Desktop\Slice bài giảng\Thực tập nhóm\Code\Pikachu\Game_Pikachu\Sounds\101-opening (online-audio-converter.com).wav");
+ sound.LoadAsync();
+ sound.Play();
}
+ private void pictureBox1_Click(object sender, EventArgs e)
+ {
+ SoundPlayer sound = new SoundPlayer(@"C:\Users\levan\Desktop\Slice bài giảng\Thực tập nhóm\Code\Pikachu\Game_Pikachu\Sounds\101-opening (online-audio-converter.com).wav");
+ sound.LoadAsync();
+ sound.Stop();
+ }
}
}
diff --git a/Game_Pikachu/Properties/Resources.Designer.cs b/Game_Pikachu/Properties/Resources.Designer.cs
index 5f6f219..f6b3d4c 100644
--- a/Game_Pikachu/Properties/Resources.Designer.cs
+++ b/Game_Pikachu/Properties/Resources.Designer.cs
@@ -530,6 +530,16 @@ internal static System.Drawing.Bitmap khung_dai {
}
}
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap mute1 {
+ get {
+ object obj = ResourceManager.GetObject("mute1", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
diff --git a/Game_Pikachu/Properties/Resources.resx b/Game_Pikachu/Properties/Resources.resx
index 35095aa..a7acc52 100644
--- a/Game_Pikachu/Properties/Resources.resx
+++ b/Game_Pikachu/Properties/Resources.resx
@@ -121,12 +121,15 @@
..\Resources\tro-choi-pikachu-game.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\7.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\Resources\2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\guide1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -145,8 +148,8 @@
..\Resources\guide2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\15.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\13.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -163,6 +166,9 @@
..\Resources\18.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\Fantastic-pokemon-hd-wallpaper-sumsung.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -181,15 +187,15 @@
..\Resources\14578669e52ac18.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\9.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\start2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\56641434_2360977737295523_6324701134225145856_n.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
..\Resources\anh-pikachu-de-thuong-9.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -199,18 +205,15 @@
..\Resources\23.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\8.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\Resources\24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\Resources\26.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\27.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\unnamed.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
..\Resources\14.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -226,14 +229,14 @@
..\Resources\11.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\25.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\56641434_2360977737295523_6324701134225145856_n.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\images.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\unnamed.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\15.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\circle-png-circle-png-hd-1600.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -241,8 +244,8 @@
..\Resources\21.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\9.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -253,20 +256,20 @@
..\Resources\view.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\7.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\6.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\about2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\8.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\start1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\about2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\6.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\26.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\exit1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -274,7 +277,7 @@
..\Resources\31.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\Resources\exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\mute1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/Game_Pikachu/Resources/mute1.png b/Game_Pikachu/Resources/mute1.png
new file mode 100644
index 0000000..6235e66
Binary files /dev/null and b/Game_Pikachu/Resources/mute1.png differ
diff --git a/Game_Pikachu/Sounds/101-opening (online-audio-converter.com).wav b/Game_Pikachu/Sounds/101-opening (online-audio-converter.com).wav
new file mode 100644
index 0000000..35d5b0b
Binary files /dev/null and b/Game_Pikachu/Sounds/101-opening (online-audio-converter.com).wav differ
diff --git a/Game_Pikachu/UserForm.Designer.cs b/Game_Pikachu/UserForm.Designer.cs
index 6b7a107..60eb9f5 100644
--- a/Game_Pikachu/UserForm.Designer.cs
+++ b/Game_Pikachu/UserForm.Designer.cs
@@ -34,8 +34,10 @@ private void InitializeComponent()
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
+ this.pictureBox3 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
@@ -43,9 +45,10 @@ private void InitializeComponent()
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.BackgroundImage = global::Game_Pikachu.Properties.Resources.khung_dai;
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.pictureBox1.Location = new System.Drawing.Point(145, 163);
+ this.pictureBox1.Location = new System.Drawing.Point(193, 201);
+ this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(185, 32);
+ this.pictureBox1.Size = new System.Drawing.Size(247, 39);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
@@ -53,9 +56,10 @@ private void InitializeComponent()
//
this.NewName.BackColor = System.Drawing.Color.Black;
this.NewName.ForeColor = System.Drawing.SystemColors.MenuHighlight;
- this.NewName.Location = new System.Drawing.Point(158, 170);
+ this.NewName.Location = new System.Drawing.Point(211, 209);
+ this.NewName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.NewName.Name = "NewName";
- this.NewName.Size = new System.Drawing.Size(160, 20);
+ this.NewName.Size = new System.Drawing.Size(212, 22);
this.NewName.TabIndex = 1;
this.NewName.Text = "-";
//
@@ -64,9 +68,10 @@ private void InitializeComponent()
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
this.pictureBox2.BackgroundImage = global::Game_Pikachu.Properties.Resources.khung_dai;
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.pictureBox2.Location = new System.Drawing.Point(145, 212);
+ this.pictureBox2.Location = new System.Drawing.Point(193, 261);
+ this.pictureBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(185, 32);
+ this.pictureBox2.Size = new System.Drawing.Size(247, 39);
this.pictureBox2.TabIndex = 2;
this.pictureBox2.TabStop = false;
//
@@ -81,9 +86,10 @@ private void InitializeComponent()
"652",
"652343246",
"423423"});
- this.comboBox1.Location = new System.Drawing.Point(158, 218);
+ this.comboBox1.Location = new System.Drawing.Point(211, 268);
+ this.comboBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(160, 21);
+ this.comboBox1.Size = new System.Drawing.Size(212, 24);
this.comboBox1.TabIndex = 3;
//
// label1
@@ -92,9 +98,10 @@ private void InitializeComponent()
this.label1.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.label1.Font = new System.Drawing.Font("Modern No. 20", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
- this.label1.Location = new System.Drawing.Point(20, 171);
+ this.label1.Location = new System.Drawing.Point(27, 210);
+ this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(115, 18);
+ this.label1.Size = new System.Drawing.Size(136, 22);
this.label1.TabIndex = 4;
this.label1.Text = "Người Chơi Mới";
//
@@ -104,30 +111,47 @@ private void InitializeComponent()
this.label2.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.label2.Font = new System.Drawing.Font("Modern No. 20", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
- this.label2.Location = new System.Drawing.Point(20, 218);
+ this.label2.Location = new System.Drawing.Point(27, 268);
+ this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(105, 18);
+ this.label2.Size = new System.Drawing.Size(124, 22);
this.label2.TabIndex = 5;
this.label2.Text = "Người Chơi Cũ";
//
+ // pictureBox3
+ //
+ this.pictureBox3.BackColor = System.Drawing.Color.Transparent;
+ this.pictureBox3.BackgroundImage = global::Game_Pikachu.Properties.Resources.mute1;
+ this.pictureBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.pictureBox3.Location = new System.Drawing.Point(923, 44);
+ this.pictureBox3.Name = "pictureBox3";
+ this.pictureBox3.Size = new System.Drawing.Size(57, 42);
+ this.pictureBox3.TabIndex = 6;
+ this.pictureBox3.TabStop = false;
+ this.pictureBox3.Click += new System.EventHandler(this.pictureBox3_Click);
+ //
// UserForm
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::Game_Pikachu.Properties.Resources.tro_choi_pikachu_game;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.ClientSize = new System.Drawing.Size(800, 450);
+ this.ClientSize = new System.Drawing.Size(1067, 554);
+ this.Controls.Add(this.pictureBox3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.NewName);
this.Controls.Add(this.pictureBox1);
+ this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "UserForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "UserForm";
+ this.Load += new System.EventHandler(this.UserForm_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -141,5 +165,6 @@ private void InitializeComponent()
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.PictureBox pictureBox3;
}
}
\ No newline at end of file
diff --git a/Game_Pikachu/UserForm.cs b/Game_Pikachu/UserForm.cs
index b335c96..91ae248 100644
--- a/Game_Pikachu/UserForm.cs
+++ b/Game_Pikachu/UserForm.cs
@@ -7,6 +7,7 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using System.Media;
namespace Game_Pikachu
{
@@ -17,6 +18,19 @@ public UserForm()
InitializeComponent();
}
+ private void UserForm_Load(object sender, EventArgs e)
+ {
+ SoundPlayer sound = new SoundPlayer(@"C:\Users\levan\Desktop\Slice bài giảng\Thực tập nhóm\Code\Pikachu\Game_Pikachu\Sounds\101-opening (online-audio-converter.com).wav");
+ sound.LoadAsync();
+ sound.Play();
+ }
+
+ private void pictureBox3_Click(object sender, EventArgs e)
+ {
+ SoundPlayer sound = new SoundPlayer(@"C:\Users\levan\Desktop\Slice bài giảng\Thực tập nhóm\Code\Pikachu\Game_Pikachu\Sounds\101-opening (online-audio-converter.com).wav");
+ sound.LoadAsync();
+ sound.Stop();
+ }
}
}