Debris updates.

This commit is contained in:
Steve 2015-12-16 22:40:26 +00:00
parent 33373457b2
commit 2e2bd9d882
2 changed files with 4 additions and 4 deletions

View File

@ -155,7 +155,7 @@ void addDebrisFire(int x, int y)
e->y = y + (rand() % 8 - rand() % 8);
e->texture = explosionTexture;
e->health = 0;
e->size = 8 + rand() % 9;
e->size = 4 + rand() % 12;
setRandomFlameHue(e);

View File

@ -473,7 +473,7 @@ static void immediateDie(void)
self->alive = ALIVE_DEAD;
addSmallExplosion();
playBattleSound(SND_EXPLOSION_1 + rand() % 4, self->x, self->y);
addDebris(self->x, self->y, rand() % 5);
addDebris(self->x, self->y, 3 + rand() % 6);
}
static void spinDie(void)
@ -496,7 +496,7 @@ static void spinDie(void)
self->alive = ALIVE_DEAD;
addSmallExplosion();
playBattleSound(SND_EXPLOSION_1 + rand() % 4, self->x, self->y);
addDebris(self->x, self->y, rand() % 5);
addDebris(self->x, self->y, 3 + rand() % 6);
}
}
@ -518,7 +518,7 @@ static void straightDie(void)
self->alive = ALIVE_DEAD;
addSmallExplosion();
playBattleSound(SND_EXPLOSION_1 + rand() % 4, self->x, self->y);
addDebris(self->x, self->y, rand() % 5);
addDebris(self->x, self->y, 3 + rand() % 6);
}
}