public Game(LEDMatrix ledMatrix) { IsRunning = false; Player = new Player(Columns, Rows); Board = new Board(ledMatrix, Player); Level = (Player.Length / 2); }
public Board(LEDMatrix ledMatrix, Player player) { LEDGameBoard = ledMatrix; Player = player; GameBoard = new GameObject[LEDGameBoard.Columns, LEDGameBoard.Rows]; GameBoard[2, 2] = GameObject.Player; for (int cIndex = 0; cIndex < LEDGameBoard.Columns; cIndex++) { for (int rIndex = 0; rIndex < LEDGameBoard.Rows; rIndex++) { GameBoard[cIndex, rIndex] = GameObject.Blank; } } GenerateFruit(); }
public LEDAnimator(LEDMatrix ledMatrix) { LEDMatrix = ledMatrix; }