fishing_boo.inc.c (986B)
1 // fishing_boo.inc.c 2 3 // Unused behavior file for the Fishing Boo enemy. 4 // The fire circles around mario and would make it 5 // hard for him to jump or platform. 6 // There is also a stubbed behavior script next to 7 // the scripts associated with this, indicating 8 // a removed object associated with this flame. 9 10 void bhv_beta_moving_flames_spawn_loop(void) { 11 o->oDistanceToMario = lateral_dist_between_objects(o, gMarioObject); 12 o->oPosY -= 100.0f; 13 14 switch (o->oAction) { 15 case 0: 16 case 1: 17 case 2: 18 case 3: 19 case 4: 20 case 5: 21 case 6: 22 case 7: 23 spawn_object(o, MODEL_RED_FLAME, bhvBetaMovingFlames); 24 o->oAction++; 25 break; 26 case 8: 27 break; 28 case 9: 29 o->oAction++; 30 break; 31 } 32 } 33 34 void bhv_beta_moving_flames_loop(void) { 35 cur_obj_scale(5.0f); 36 37 o->oForwardVel = sins(o->oMovingFlameTimer) * 70.0f; 38 o->oMovingFlameTimer += 0x800; 39 }