Example #1
0
 /** Sets the options. */
 public void setOptions() {
   _optionsDialog.setVisible(false);
   _gameOptions.put("brickCount", _optionsDialog.getBrickCount());
   _gameOptions.put("hitsToRemoveBrick", _optionsDialog.getHitsToRemoveBrick());
   _gameOptions.put("ballsPerLevel", _optionsDialog.getBallsPerLevel());
   _gameOptions.put("nextLevelSpeedJump", _optionsDialog.getLevelSpeedup());
   resetGame();
   repaint();
 }
Example #2
0
 private void generateGameOptions() {
   _gameOptions = new Hashtable<String, Integer>();
   _gameOptions.put("brickCount", initialOptions.brickCount);
   _gameOptions.put("hitsToRemoveBrick", initialOptions.hitsToRemoveBrick);
   _gameOptions.put("ballsPerLevel", initialOptions.ballsPerLevel);
   _gameOptions.put("nextLevelSpeedJump", initialOptions.nextLevelSpeedJump);
   _gameOptions.put("fieldPixelWidth", initialOptions.fieldPixelWidth);
   _gameOptions.put("fieldPixelHeight", initialOptions.fieldPixelHeight);
 }