Skip to content

Commit 156bb9a

Browse files
committed
Merge branch 'feature' into develop
2 parents ea01b3e + 90d50e8 commit 156bb9a

30 files changed

+329
-522
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

CYPVP/.vs/CYPVP/v17/.suo

16.5 KB
Binary file not shown.

CYPVP/CYPVP.csproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@
6060
<Compile Include="GameWindow.Designer.cs">
6161
<DependentUpon>GameWindow.cs</DependentUpon>
6262
</Compile>
63-
<Compile Include="Help.cs">
63+
<Compile Include="Help.cs" />
64+
<Compile Include="HelpWindow.cs">
6465
<SubType>Form</SubType>
6566
</Compile>
66-
<Compile Include="Help.Designer.cs">
67-
<DependentUpon>Help.cs</DependentUpon>
67+
<Compile Include="HelpWindow.Designer.cs">
68+
<DependentUpon>HelpWindow.cs</DependentUpon>
6869
</Compile>
6970
<Compile Include="MainMenu.cs" />
7071
<Compile Include="Program.cs" />
@@ -75,8 +76,8 @@
7576
<EmbeddedResource Include="GameWindow.resx">
7677
<DependentUpon>GameWindow.cs</DependentUpon>
7778
</EmbeddedResource>
78-
<EmbeddedResource Include="Help.resx">
79-
<DependentUpon>Help.cs</DependentUpon>
79+
<EmbeddedResource Include="HelpWindow.resx">
80+
<DependentUpon>HelpWindow.cs</DependentUpon>
8081
</EmbeddedResource>
8182
<EmbeddedResource Include="Properties\Resources.resx">
8283
<Generator>ResXFileCodeGenerator</Generator>

CYPVP/Form1.Designer.cs

Lines changed: 28 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CYPVP/Form1.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,15 @@ private void pb_muteSound_Click(object sender, EventArgs e)
5555

5656
private void btn_help_Click(object sender, EventArgs e)
5757
{
58-
Help help = new Help();
58+
HelpWindow help = new HelpWindow();
5959
help.StartPosition=FormStartPosition.Manual;
6060
help.Location = this.Location;
6161
this.Hide();
6262
Menu.Stop();
6363
if(help.ShowDialog() == DialogResult.Cancel) {
64-
this.Show();
65-
Menu.Play();
64+
this.Show();
65+
//Menu.Play();
66+
6667
}
6768
}
6869

@@ -76,7 +77,7 @@ private void btn_start_Click(object sender, EventArgs e)
7677
if (gameWindow.ShowDialog() == DialogResult.Cancel)
7778
{
7879
this.Show();
79-
Menu.Play();
80+
//Menu.Play();
8081
}
8182
}
8283
}

CYPVP/GameWindow.Designer.cs

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CYPVP/GameWindow.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private void GameWindow_KeyUp(object sender, KeyEventArgs e)
7171
Game.CanMoveUp = false;
7272
if (Game.Check())
7373
{
74-
Character.Image = Properties.Resources.up_standing;
74+
Character.Image= Properties.Resources.up_standing;
7575
}
7676

7777
}
@@ -126,8 +126,10 @@ private void Movements_Tick(object sender, EventArgs e)
126126
}
127127
}
128128

129-
129+
private void GameWindow_Load(object sender, EventArgs e)
130+
{
130131

132+
}
131133
}
132134
}
133135

CYPVP/GameWindow.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
<data name="Character.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
128128
<value>
129129
iVBORw0KGgoAAAANSUhEUgAAAEYAAABGCAYAAABxLuKEAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1
130-
MAAA6mAAADqYAAAXcJy6UTwAAAAJcEhZcwAADsAAAA7AAWrWiQkAAAAHdElNRQfnBg4MEyIVn/obAAAA
130+
MAAA6mAAADqYAAAXcJy6UTwAAAAJcEhZcwAADr8AAA6/ATgFUyQAAAAHdElNRQfnBg4MEyIVn/obAAAA
131131
L3RFWHRDb21tZW50AEdJRiByZXNpemVkIG9uIGh0dHBzOi8vZXpnaWYuY29tL3Jlc2l6ZaI7uLIAAAAS
132132
dEVYdFNvZnR3YXJlAGV6Z2lmLmNvbaDDs1gAAAtQSURBVHhe7ZppbFzVFcffzJvVs+/rG3u8Trw7jmN7
133133
7Hh3NjvOYmdPHEhIutAmYWlrSChpWKJmaSs1rSqkKKC2AkFYFUQLUiXafmirFio+VJVaKqCFBqgKhQpQ

CYPVP/Help.Designer.cs

Lines changed: 0 additions & 94 deletions
This file was deleted.

CYPVP/Help.cs

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.ComponentModel;
4-
using System.Data;
53
using System.Drawing;
64
using System.Linq;
75
using System.Text;
@@ -10,25 +8,30 @@
108

119
namespace CYPVP
1210
{
13-
public partial class Help : Form
11+
public class Help
12+
1413
{
15-
public Help()
16-
{
17-
InitializeComponent();
18-
pictureBox1.BackColor = Color.Transparent;
19-
pictureBox2.BackColor=Color.Transparent;
20-
21-
}
2214

23-
private void button1_Click(object sender, EventArgs e)
15+
public bool CanMoveUp { get; set; }
16+
public bool CanMoveDown { get; set; }
17+
public bool CanMoveRight { get; set; }
18+
public bool CanMoveLeft { get; set; }
19+
public int Height { get; set; }
20+
public int Width { get; set; }
21+
public Help(int height, int width)
2422
{
25-
this.Close();
26-
this.DialogResult = DialogResult.Cancel;
23+
CanMoveDown = false;
24+
CanMoveLeft = false;
25+
CanMoveRight = false;
26+
CanMoveUp = false;
27+
Height = height;
28+
Width = width;
2729
}
28-
29-
private void pictureBox1_Click(object sender, EventArgs e)
30+
31+
public bool Check()
3032
{
31-
33+
return CanMoveDown == false && CanMoveUp == false && CanMoveLeft == false && CanMoveRight == false;
3234
}
35+
3336
}
3437
}

0 commit comments

Comments
 (0)