diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-12-12 20:01:25 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-12-12 20:01:25 -0800 |
commit | f79699d4c8b40e43847ec5f75993b5a39b598e53 (patch) | |
tree | fd1632ce31ad361965aece121eca1a10cf8b2336 /src/game.c | |
parent | e3085a3505bb30cf975804c519a3352bdc74d0dd (diff) |
plasma-node: link infects_rate_smoothed to plasma
For now just scale the intensity of the plasma by the infections
rate. When the infections rate sustain the maximum rate, the
plasma eventually turns black.
Will probably have to iterate a bit on this
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1140,7 +1140,7 @@ static void * game_init(play_t *play, int argc, char *argv[], unsigned flags) game->sars = sars; game->stage = sars->stage; - game->plasma_node = plasma_node_new(&(stage_conf_t){ .parent = sars->stage, .name = "plasma", .alpha = 1 }, &sars->projection_x); + game->plasma_node = plasma_node_new(&(stage_conf_t){ .parent = sars->stage, .name = "plasma", .alpha = 1 }, &sars->projection_x, &game->infections_rate_smoothed); game->ix2 = ix2_new(NULL, 4, 4, 2 /* support two simultaneous searches: tv_search->baby_search */); |