engine-c: bigger impact/explosion blooms
This commit is contained in:
parent
d1da64d84b
commit
6ac07fe3a6
5 changed files with 67 additions and 48 deletions
|
|
@ -108,13 +108,19 @@ void bullet_update(Game *g, float dt) {
|
|||
Building *t = bld_by_id(g, b->target_bld);
|
||||
if (t) bld_apply_damage(g, t, b->damage);
|
||||
}
|
||||
/* denser impact: fire/laser core + smoke ring + debris */
|
||||
/* bigger KKND2 impact bloom: fire core + smoke ring + debris + flash */
|
||||
int hit_kind = (b->kind == 2) ? 2 : 1;
|
||||
particle_burst(g, b->tx, b->ty, 12, hit_kind, 255, 200, 80);
|
||||
particle_burst(g, b->tx, b->ty, 8, 0, 90, 80, 60);
|
||||
particle_burst(g, b->tx, b->ty, 5, 1, 255, 120, 35);
|
||||
if (b->kind == 1 || b->kind == 3)
|
||||
particle_burst(g, b->tx, b->ty, 6, 3, 255, 140, 40);
|
||||
int shell = (b->kind == 1 || b->kind == 3);
|
||||
particle_burst(g, b->tx, b->ty, shell ? 22 : 14, hit_kind, 255, 200, 80);
|
||||
particle_burst(g, b->tx, b->ty, shell ? 16 : 10, 0, 90, 80, 60);
|
||||
particle_burst(g, b->tx, b->ty, shell ? 12 : 6, 1, 255, 120, 35);
|
||||
particle_burst(g, b->tx + 4, b->ty - 3, shell ? 10 : 5, 1, 255, 170, 50);
|
||||
particle_burst(g, b->tx - 5, b->ty + 4, shell ? 8 : 4, 2, 255, 230, 100);
|
||||
if (shell) {
|
||||
particle_burst(g, b->tx, b->ty, 14, 3, 255, 140, 40);
|
||||
particle_burst(g, b->tx + 8, b->ty + 2, 8, 3, 90, 75, 55);
|
||||
particle_burst(g, b->tx - 6, b->ty - 5, 8, 0, 70, 60, 50);
|
||||
}
|
||||
/* swap-remove */
|
||||
g->bullets[i] = g->bullets[g->bullet_count - 1];
|
||||
g->bullet_count--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue