Path: blob/master/src/game/behaviors/beta_bowser_anchor.inc.c
7861 views
/**1* Behavior for bhvBetaBowserAnchor.2* This seems to be a beta bowser anchor object. It continuously updates to be3* about the same distance away from Mario as Bowser is, and it is destructive.4*/56/**7* Update function for bhvBetaBowserAnchor.8* It continuously updates to be in front of Mario,9* and attacks all non-Mario objects it touches.10* It continuously sets its hitbox radius/height11* based on gDebugInfo[4].12*/13void bhv_beta_bowser_anchor_loop(void) {14// Set the object's position to be 30 units above Mario's feet,15// and 300 units in front of him.16cur_obj_set_pos_relative(gMarioObject, 0, 30.0f, 300.0f);1718o->hitboxRadius = gDebugInfo[4][0] + 100;19o->hitboxHeight = gDebugInfo[4][1] + 300;2021obj_attack_collided_from_other_object(o);22}232425