Changeset 83
Author: ahaurw01
(2009/04/07 21:24) Almost 3 years ago
fixed music problems, can now return to the main menu after losing or winning
Author: ahaurw01
(2009/04/07 21:24) Almost 3 years ago
fixed music problems, can now return to the main menu after losing or winning
# ## w ## w ##00 ##000 #public Ellipse2D getCircle() {newLevelSnd = new SoundPlayback("music/NewLevel.aif");newLevelSnd = new SoundPlayback("music/NewLevel.aif");levelMusicSnd = new SoundPlayback("music/Level_music.aif", true);levelMusicSnd = new SoundPlayback("music/Level_music.aif", true);gameplaySnd = new SoundPlayback("music/gameplaymusic.aif");gameplaySnd = new SoundPlayback("music/gameplaymusic.aif");openingSnd = new SoundPlayback("music/openingmusic.aif", true);openingSnd = new SoundPlayback("music/openingmusic.aif");livesLeft = 6;livesLeft = 1;private void startEverythingOver() {if (bs.isDead()) {if (bs.isDead()) {//deadSnd.stop();if (livesLeft == 0) {if (livesLeft == 0) {levelMusicSnd.stop();gameplaySnd.stop();try {try {} catch (InterruptedException e) {}} catch (InterruptedException e) {}else if (beatTheGame) {else if (beatTheGame) {else if (gameOver) {else if (gameOver) {else if ((gameOver && !gameStarted) || beatTheGame){else if (e.getKeyCode() == KeyEvent.VK_F12) {else if (e.getKeyCode() == KeyEvent.VK_F12) {public Ellipse2D getCircle() {newLevelSnd = new SoundPlayback("music/NewLevel.aif");newLevelSnd = new SoundPlayback("music/NewLevel.aif");levelMusicSnd = new SoundPlayback("music/Level_music.aif", true);levelMusicSnd = new SoundPlayback("music/Level_music.aif", true);gameplaySnd = new SoundPlayback("music/gameplaymusic.aif");gameplaySnd = new SoundPlayback("music/gameplaymusic.aif");openingSnd = new SoundPlayback("music/openingmusic.aif", true);openingSnd = new SoundPlayback("music/openingmusic.aif");livesLeft = 6;livesLeft = 1;private void startEverythingOver() {if (bs.isDead()) {if (bs.isDead()) {//deadSnd.stop();if (livesLeft == 0) {if (livesLeft == 0) {levelMusicSnd.stop();gameplaySnd.stop();try {try {} catch (InterruptedException e) {}} catch (InterruptedException e) {}else if (beatTheGame) {else if (beatTheGame) {else if (gameOver) {else if (gameOver) {else if ((gameOver && !gameStarted) || beatTheGame){else if (e.getKeyCode() == KeyEvent.VK_F12) {else if (e.getKeyCode() == KeyEvent.VK_F12) {# ## w ## w ##00 ##000 #