adjusted disco beat

This commit is contained in:
Gibstick 2013-11-09 06:59:24 -05:00
parent 8cf1b4b98a
commit daf4b6e345

View File

@ -381,14 +381,14 @@ public class DiscoParty {
} }
void playSounds() { void playSounds() {
player.playSound(player.getLocation(), Sound.NOTE_BASS_DRUM, 1.0f, 1.0f); player.playSound(player.getLocation(), Sound.NOTE_BASS_DRUM, 0.5f, 1.0f);
if (this.state % 2 == 0) { if (this.state % 2 == 0) {
player.playSound(player.getLocation(), Sound.NOTE_SNARE_DRUM, 1.0f, 1.0f); player.playSound(player.getLocation(), Sound.NOTE_SNARE_DRUM, 0.75f, 1.0f);
} }
if (this.state % 4 == 0) { if ((this.state + 1) % 8 == 0) {
player.playSound(player.getLocation(), Sound.NOTE_STICKS, 1.0f, 1.0f); player.playSound(player.getLocation(), Sound.NOTE_STICKS, 1.0f, 1.0f);
} }
player.playSound(player.getLocation(), Sound.BURP, 0.5f, r.nextFloat() + 1); //player.playSound(player.getLocation(), Sound.BURP, 0.5f, r.nextFloat() + 1); TODO
} }
void randomizeFirework(Firework firework) { void randomizeFirework(Firework firework) {