Sheep alternate jumping, half the sheep jump at a time.

This commit is contained in:
RangerMauve 2013-07-12 08:47:18 -04:00
parent 3e06213fc5
commit 21c10851f3

View File

@ -172,16 +172,23 @@ public class DiscoParty {
} }
void updateAllSheep() { void updateAllSheep() {
int i = 0;
for (Sheep sheep : getSheep()) { for (Sheep sheep : getSheep()) {
randomizeSheepColour(sheep); randomizeSheepColour(sheep);
if (state % 8 == 0) { // HA HA IT LOOKS LIKE A PENIS if (doFireworks && state % 8 == 0) {
if (doFireworks) { spawnRandomFireworkAtSheep(sheep);
spawnRandomFireworkAtSheep(sheep); }
}
if(doJump){ if (doJump) {
jumpSheep(sheep); if (state % 4 == 0) {
if ((state % 8 == 0) && (i % 2 == 0)) {
jumpSheep(sheep);
} else if (i % 2 != 0) {
jumpSheep(sheep);
}
} }
} }
i++;
} }
} }