summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-12-12 17:25:07 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-12-12 17:25:07 -0800
commit095a0591af5dc026b9d48e282e5859eda84c646c (patch)
treee6d19273f771bba66795b6bafed460bb775f952a /src
parenta84eb6daae60abe2546312d91bf9bb94dd75a4b7 (diff)
game: flip the winning adult as a celebratory dance
Dan's idea...
Diffstat (limited to 'src')
-rw-r--r--src/game.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 9c9943a..9cd3d4e 100644
--- a/src/game.c
+++ b/src/game.c
@@ -1343,6 +1343,11 @@ static void game_update(play_t *play, void *context)
tp->entity.model_x = m4f_scale(&tp->entity.model_x, &tp->entity.scale);
tp->entity.model_x = m4f_rotate(&tp->entity.model_x, &(v3f_t){ .x = 0.f, .y = 0.f, .z = 1.f }, r);
}
+
+ /* "dance" the adult too */
+ game->adult->entity.model_x = m4f_translate(NULL, &(v3f_t){ game->adult->entity.position.x, game->adult->entity.position.y, 0.f });
+ game->adult->entity.model_x = m4f_scale(&game->adult->entity.model_x, &game->adult->entity.scale);
+ game->adult->entity.model_x = m4f_rotate(&game->adult->entity.model_x, &(v3f_t){.y = -1.f}, r < 0 ? 0.f : M_PI);
break;
}
© All Rights Reserved