From f79699d4c8b40e43847ec5f75993b5a39b598e53 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 12 Dec 2022 20:01:25 -0800 Subject: 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 --- src/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index 384728d..9269fc9 100644 --- a/src/game.c +++ b/src/game.c @@ -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 */); -- cgit v1.2.3