public GameState(Ball ball, int gameWidth, int gameHeight) { _ball = ball; _gameWidth = gameWidth; _gameHeight = gameHeight; _breakoutLevel = BreakoutLevel.Create(1, _ball, _gameWidth, _gameHeight); }
public void GoToNextLevel() { _breakoutLevel = BreakoutLevel.Create(_breakoutLevel.Level + 1, _ball, _gameWidth, _gameHeight); }