public void toggleMusic() { if (getPause()) { inGame.pause(); intro.playLoop(); } else { intro.pause(); inGame.playLoop(); } }
public void act() // sean { if (!played) { burningSteppes.playLoop(); played = !played; } // makeSmokeFireball(); counterDelay++; if (Greenfoot.isKeyDown("h") && delay > 10) { clickSound.play(); Menu menu = new Menu(getThisWorld()); Greenfoot.setWorld(menu); delay = 0; } if (getObjects(Ninja.class).size() != 0 && counterDelay >= 10) { healthCounter.setValue(ninja.getNINJAHP()); shurikenCounter.setValue(ninja.getSHURIKENNUMBER()); powerCounter.setValue(ninja.getPOWERBAR()); checkDoor(); counterDelay -= 10; /**/ // TEMPORAY FUNCTIONS FOR HAYDEN TO CHANGE LEVELS TO MAKE THEM /**/ /**/ // TEMPORAY FUNCTIONS FOR HAYDEN TO CHANGE LEVELS TO MAKE THEM /**/ } delay++; fireballDelay++; }