-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameEnvironment.cs
41 lines (36 loc) · 1.59 KB
/
GameEnvironment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using Snake.Controllers;
using Snake.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace Snake {
public static class GameEnvironment {
public static int gridSize = 40;
public static Random rand = new Random();
public static int interval = 200;
public static uint rowCount = 12;
public static uint columnCount = 28;
public static double GameWidth { get { return columnCount * gridSize; } }
public static double GameHeight { get { return rowCount * gridSize; } }
public static Brush grid1Brush = Brushes.Gray;
public static Brush grid2Brush = Brushes.White;
public static Brush snakeBodyBrush = Brushes.Green;
public static Brush snakeHeadBrush = Brushes.Red;
public static GridPosition initialSnakeHeadPosition = new GridPosition(7, 10);
public static SnakeController.SnakeDirection initialDirection = SnakeController.SnakeDirection.Right;
public static int initialBodyCount = 3;
public static Brush foodBrush = Brushes.Yellow;
public static Brush foodStroke = Brushes.Transparent;
public static double foodStrokeThickness = 0;
public static List<GridPosition> brickPositions = new List<GridPosition>() {
new GridPosition(0,0),
new GridPosition(1,0),
};
public static Brush brickBrush = Brushes.AliceBlue;
public static Brush brickStroke = Brushes.Black;
public static double brickStrokeThickness = 1;
}
}