2019-08-25 04:46:40 +00:00
|
|
|
// fishing_boo.c.inc
|
|
|
|
|
|
|
|
// Unused behavior file for the Fishing Boo enemy.
|
|
|
|
// The fire circles around mario and would make it
|
|
|
|
// hard for him to jump or platform.
|
|
|
|
// There is also a stubbed behavior script next to
|
|
|
|
// the scripts associated with this, indicating
|
|
|
|
// a removed object associated with this flame.
|
|
|
|
|
|
|
|
void bhv_beta_moving_flames_spawn_loop(void) {
|
|
|
|
o->oDistanceToMario = lateral_dist_between_objects(o, gMarioObject);
|
|
|
|
o->oPosY -= 100.0f;
|
|
|
|
switch (o->oAction) {
|
|
|
|
case 0:
|
|
|
|
case 1:
|
|
|
|
case 2:
|
|
|
|
case 3:
|
|
|
|
case 4:
|
|
|
|
case 5:
|
|
|
|
case 6:
|
|
|
|
case 7:
|
|
|
|
spawn_object(o, MODEL_RED_FLAME, bhvBetaMovingFlames);
|
|
|
|
o->oAction++;
|
|
|
|
break;
|
|
|
|
case 8:
|
|
|
|
break;
|
|
|
|
case 9:
|
|
|
|
o->oAction++;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void bhv_beta_moving_flames_loop(void) {
|
2020-03-02 03:42:52 +00:00
|
|
|
cur_obj_scale(5.0f);
|
2019-08-25 04:46:40 +00:00
|
|
|
o->oForwardVel = sins(o->oMovingFlameTimer) * 70.0f;
|
|
|
|
o->oMovingFlameTimer += 0x800;
|
|
|
|
}
|