fixed window

This commit is contained in:
max
2026-02-04 20:29:49 +01:00
parent 46816d3dbf
commit c09428bb31
4 changed files with 35 additions and 37 deletions

View File

@@ -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;