Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit e102382

Browse files
committed
53X Again 8!
1 parent f8d7f87 commit e102382

File tree

4 files changed

+52
-51
lines changed

4 files changed

+52
-51
lines changed

Snake/Game.Designer.cs

+45-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Snake/Game.cs

+7-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private void Game_Load(object sender, EventArgs e)
4141
Direct = Direction.Right;
4242
Width = VWidth;
4343
Height = VHeight;
44-
rectangleShape2.Location = new Point(Width2, Height2);
44+
SnakeHead.Location = new Point(Width2, Height2);
4545
}
4646

4747
private enum Direction
@@ -123,7 +123,7 @@ private void Gaming_Tick(object sender, EventArgs e)
123123
Height2 += 10;
124124
}
125125
Drawing(X, Y);
126-
rectangleShape2.Location = new Point(Width2, Height2);
126+
SnakeHead.Location = new Point(Width2, Height2);
127127

128128
if (X != Width2 || Y != Height2)
129129
{
@@ -189,10 +189,11 @@ private void Gaming_Tick(object sender, EventArgs e)
189189
T1++;
190190
T2 = 0;
191191
}
192-
label1.Text = "X = " + Width2 + " - FX = " + Math.Abs(FX) + "\n" + "Y = " + Height2 + " - FY = " + Math.Abs(FY);
193-
label2.Text = "Measurement = " + Measurement + "\n" + "Time = " + T1 + "." + T2 + " Second";
194-
label1.SendToBack();
195-
label2.SendToBack();
192+
InfoLabel.Text = "X = " + Width2 + " - FX = " + Math.Abs(FX) + "\n" + "Y = " + Height2 + " - FY = " + Math.Abs(FY);
193+
StateLabel.Text = "Measurement = " + Measurement + "\n" + "Time = " + T1 + "." + T2 + " Second";
194+
InfoLabel.SendToBack();
195+
StateLabel.SendToBack();
196+
SnakeHead.BringToFront();
196197
}
197198
}
198199

Snake/bin/Release/Snake.exe

0 Bytes
Binary file not shown.

Snake/bin/Release/Snake.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)