summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-12-12 20:01:25 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-12-12 20:01:25 -0800
commitf79699d4c8b40e43847ec5f75993b5a39b598e53 (patch)
treefd1632ce31ad361965aece121eca1a10cf8b2336 /src/game.c
parente3085a3505bb30cf975804c519a3352bdc74d0dd (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.c2
1 files changed, 1 insertions, 1 deletions
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 */);
© All Rights Reserved