コード例 #1
0
 public GameState(Ball ball, int gameWidth, int gameHeight)
 {
     _ball          = ball;
     _gameWidth     = gameWidth;
     _gameHeight    = gameHeight;
     _breakoutLevel = BreakoutLevel.Create(1, _ball, _gameWidth, _gameHeight);
 }
コード例 #2
0
 public void GoToNextLevel()
 {
     _breakoutLevel = BreakoutLevel.Create(_breakoutLevel.Level + 1, _ball, _gameWidth, _gameHeight);
 }