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; } } }
public TetrisGameEngine(ConsoleGraphics graphics, GameScore score) : base(graphics, score) { AddObject(new Player(graphics, score)); AddObject(score); }
public GameEngine(ConsoleGraphics graphics, GameScore score) { _graphics = graphics; _game = score; }