Ejemplo n.º 1
0
 public Game(LEDMatrix ledMatrix)
 {
     IsRunning = false;
     Player = new Player(Columns, Rows);
     Board = new Board(ledMatrix, Player);
     Level = (Player.Length / 2);
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public LEDAnimator(LEDMatrix ledMatrix)
 {
     LEDMatrix = ledMatrix;
 }