sm64/src/game/behaviors/white_puff.inc.c

21 lines
473 B
C
Raw Normal View History

2019-08-25 00:46:40 -04:00
// white_puff.c.inc
void bhv_white_puff_1_loop(void) {
f32 sp1C = 0.1f;
f32 sp18 = 0.5f;
if (o->oTimer == 0) {
2020-03-01 22:42:52 -05:00
obj_translate_xz_random(o, 40.0f);
2019-08-25 00:46:40 -04:00
o->oPosY += 30.0f;
}
2020-03-01 22:42:52 -05:00
cur_obj_scale(o->oTimer * sp18 + sp1C);
2019-08-25 00:46:40 -04:00
o->oOpacity = 50;
2020-03-01 22:42:52 -05:00
cur_obj_move_using_fvel_and_gravity();
2019-08-25 00:46:40 -04:00
if (o->oTimer > 4)
2020-03-01 22:42:52 -05:00
obj_mark_for_deletion(o);
2019-08-25 00:46:40 -04:00
}
void bhv_white_puff_2_loop(void) {
if (o->oTimer == 0)
2020-03-01 22:42:52 -05:00
obj_translate_xz_random(o, 40.0f);
2019-08-25 00:46:40 -04:00
}