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

Commit

Permalink
53X Again 8!
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Jun 24, 2020
1 parent f8d7f87 commit e102382
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 51 deletions.
90 changes: 45 additions & 45 deletions Snake/Game.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions Snake/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private void Game_Load(object sender, EventArgs e)
Direct = Direction.Right;
Width = VWidth;
Height = VHeight;
rectangleShape2.Location = new Point(Width2, Height2);
SnakeHead.Location = new Point(Width2, Height2);
}

private enum Direction
Expand Down Expand Up @@ -123,7 +123,7 @@ private void Gaming_Tick(object sender, EventArgs e)
Height2 += 10;
}
Drawing(X, Y);
rectangleShape2.Location = new Point(Width2, Height2);
SnakeHead.Location = new Point(Width2, Height2);

if (X != Width2 || Y != Height2)
{
Expand Down Expand Up @@ -189,10 +189,11 @@ private void Gaming_Tick(object sender, EventArgs e)
T1++;
T2 = 0;
}
label1.Text = "X = " + Width2 + " - FX = " + Math.Abs(FX) + "\n" + "Y = " + Height2 + " - FY = " + Math.Abs(FY);
label2.Text = "Measurement = " + Measurement + "\n" + "Time = " + T1 + "." + T2 + " Second";
label1.SendToBack();
label2.SendToBack();
InfoLabel.Text = "X = " + Width2 + " - FX = " + Math.Abs(FX) + "\n" + "Y = " + Height2 + " - FY = " + Math.Abs(FY);
StateLabel.Text = "Measurement = " + Measurement + "\n" + "Time = " + T1 + "." + T2 + " Second";
InfoLabel.SendToBack();
StateLabel.SendToBack();
SnakeHead.BringToFront();
}
}

Expand Down
Binary file modified Snake/bin/Release/Snake.exe
Binary file not shown.
Binary file modified Snake/bin/Release/Snake.pdb
Binary file not shown.

0 comments on commit e102382

Please sign in to comment.