2019-08-25 04:46:40 +00:00
|
|
|
/**
|
|
|
|
* Behavior for bhvBetaBowserAnchor.
|
|
|
|
* This seems to be a beta bowser anchor object. It continuously updates to be
|
|
|
|
* about the same distance away from Mario as Bowser is, and it is destructive.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update function for bhvBetaBowserAnchor.
|
|
|
|
* It continuously updates to be in front of Mario,
|
|
|
|
* and attacks all non-Mario objects it touches.
|
|
|
|
* It continuously sets its hitbox radius/height
|
|
|
|
* based on gDebugInfo[4].
|
|
|
|
*/
|
|
|
|
void bhv_beta_bowser_anchor_loop(void) {
|
|
|
|
// Set the object's position to be 30 units above Mario's feet,
|
|
|
|
// and 300 units in front of him.
|
2020-03-02 03:42:52 +00:00
|
|
|
cur_obj_set_pos_relative(gMarioObject, 0, 30.0f, 300.0f);
|
2019-08-25 04:46:40 +00:00
|
|
|
|
|
|
|
o->hitboxRadius = gDebugInfo[4][0] + 100;
|
|
|
|
o->hitboxHeight = gDebugInfo[4][1] + 300;
|
|
|
|
|
2020-03-02 03:42:52 +00:00
|
|
|
obj_attack_collided_from_other_object(o);
|
2019-08-25 04:46:40 +00:00
|
|
|
}
|