Skip to content

Commit bd96231

Browse files
committed
Add heading, instruction to helpmenu
1 parent f0096ca commit bd96231

21 files changed

+82
-225
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.

CYPVP/.vs/CYPVP/v17/.suo

1 KB
Binary file not shown.

CYPVP/Form1.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ private void btn_help_Click(object sender, EventArgs e)
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/Help.cs

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class Help
1616
public bool CanMoveDown { get; set; }
1717
public bool CanMoveRight { get; set; }
1818
public bool CanMoveLeft { get; set; }
19-
public int NewPosition { get; set; }
2019
public int Height { get; set; }
2120
public int Width { get; set; }
2221
public Help(int height, int width)
@@ -28,45 +27,7 @@ public Help(int height, int width)
2827
Height = height;
2928
Width = width;
3029
}
31-
public void MoveCharachter(PictureBox Charachter, string Position, int Speed)
32-
{
33-
if (Position == "UP")
34-
{
35-
NewPosition = Charachter.Location.Y - Speed;
36-
if (NewPosition >= 40)
37-
{
38-
Charachter.Location = new Point(Charachter.Location.X, NewPosition);
39-
}
40-
41-
}
42-
else if (Position == "DOWN")
43-
{
44-
NewPosition = Charachter.Location.Y + Speed;
45-
if (NewPosition < Height - 100)
46-
{
47-
Charachter.Location = new Point(Charachter.Location.X, NewPosition);
48-
}
49-
50-
}
51-
else if (Position == "RIGHT")
52-
{
53-
NewPosition = Charachter.Location.X + Speed;
54-
if (NewPosition < Width - 70)
55-
{
56-
Charachter.Location = new Point(NewPosition, Charachter.Location.Y);
57-
}
58-
59-
}
60-
else if (Position == "LEFT")
61-
{
62-
NewPosition = Charachter.Location.X - Speed;
63-
if (NewPosition >= 10)
64-
{
65-
Charachter.Location = new Point(NewPosition, Charachter.Location.Y);
66-
67-
}
68-
}
69-
}
30+
7031
public bool Check()
7132
{
7233
return CanMoveDown == false && CanMoveUp == false && CanMoveLeft == false && CanMoveRight == false;

0 commit comments

Comments
 (0)