Finished up game
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Snake
|
||||
}
|
||||
else if (cell.Type == CellTypes.Snake)
|
||||
{
|
||||
brush.Color = Color.Green;
|
||||
brush.Color = cell.Color;
|
||||
}
|
||||
else if (cell.Type == CellTypes.Food)
|
||||
{
|
||||
@@ -72,9 +72,10 @@ namespace Snake
|
||||
|
||||
int totalHeight = CELL_SIZE * _h;
|
||||
|
||||
graphics.FillRectangle(brush,
|
||||
x * 20,
|
||||
totalHeight - y * 20,
|
||||
graphics.FillRectangle(
|
||||
brush,
|
||||
x * CELL_SIZE,
|
||||
totalHeight - (y + 1) * CELL_SIZE,
|
||||
CELL_SIZE,
|
||||
CELL_SIZE
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user