diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-12-12 17:25:07 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-12-12 17:25:07 -0800 |
commit | 095a0591af5dc026b9d48e282e5859eda84c646c (patch) | |
tree | e6d19273f771bba66795b6bafed460bb775f952a /src | |
parent | a84eb6daae60abe2546312d91bf9bb94dd75a4b7 (diff) |
game: flip the winning adult as a celebratory dance
Dan's idea...
Diffstat (limited to 'src')
-rw-r--r-- | src/game.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |