Sheep alternate jumping, half the sheep jump at a time.
This commit is contained in:
parent
3e06213fc5
commit
21c10851f3
@ -172,17 +172,24 @@ public class DiscoParty {
|
||||
}
|
||||
|
||||
void updateAllSheep() {
|
||||
int i = 0;
|
||||
for (Sheep sheep : getSheep()) {
|
||||
randomizeSheepColour(sheep);
|
||||
if (state % 8 == 0) { // HA HA IT LOOKS LIKE A PENIS
|
||||
if (doFireworks) {
|
||||
if (doFireworks && state % 8 == 0) {
|
||||
spawnRandomFireworkAtSheep(sheep);
|
||||
}
|
||||
|
||||
if (doJump) {
|
||||
if (state % 4 == 0) {
|
||||
if ((state % 8 == 0) && (i % 2 == 0)) {
|
||||
jumpSheep(sheep);
|
||||
} else if (i % 2 != 0) {
|
||||
jumpSheep(sheep);
|
||||
}
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
void playSounds() {
|
||||
|
Loading…
Reference in New Issue
Block a user