public Field(int width, int height, Snek snake) { this.width = width; this.height = height; this.snake = snake; seed = new Random(); makeApple(); }
private void start() { Snek snake = new Snek(WIDTH * HEIGHT, Direction.RIGHT); snake.add(new Coordinate(0, 0)); Field field = new Field(WIDTH, HEIGHT, snake); w = new GameWindow(field, FRAMES); w.Show(); }
static void Main() { using (var game = new Snek()) game.Run(); }