Exemple #1
0
 public Player(ConsoleGraphics graphics, GameScore score)
 {
     game      = score;
     fieldGrid = new int[FieldSize.numberCellWidth, FieldSize.numberCellHeigh];
     for (int i = 0; i < FieldSize.numberCellWidth; i++)
     {
         for (int j = 0; j < FieldSize.numberCellHeigh; j++)
         {
             fieldGrid[i, j] = 0;
         }
     }
 }
Exemple #2
0
 public TetrisGameEngine(ConsoleGraphics graphics, GameScore score) : base(graphics, score)
 {
     AddObject(new Player(graphics, score));
     AddObject(score);
 }
Exemple #3
0
 public GameEngine(ConsoleGraphics graphics, GameScore score)
 {
     _graphics = graphics;
     _game     = score;
 }