fixed window
This commit is contained in:
12
Snake/Map.cs
12
Snake/Map.cs
@@ -57,17 +57,11 @@ namespace Snake
|
||||
{
|
||||
Cell cell = Cells[x,y];
|
||||
|
||||
brush.Color = cell.Color;
|
||||
|
||||
if (cell.Type == CellTypes.None)
|
||||
{
|
||||
brush.Color = Color.LightGray;
|
||||
}
|
||||
else if (cell.Type == CellTypes.Snake)
|
||||
{
|
||||
brush.Color = cell.Color;
|
||||
}
|
||||
else if (cell.Type == CellTypes.Food)
|
||||
{
|
||||
brush.Color = Color.Red;
|
||||
brush.Color = Color.Black;
|
||||
}
|
||||
|
||||
int totalHeight = CELL_SIZE * _h;
|
||||
|
||||
Reference in New Issue
Block a user