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