Debris updates.
This commit is contained in:
parent
33373457b2
commit
2e2bd9d882
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue