sm64pc/src/game/behaviors/beta_bowser_anchor.inc.c
2019-08-25 00:46:40 -04:00

24 lines
776 B
C

/**
* 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.
obj_set_pos_relative(gMarioObject, 0, 30.0f, 300.0f);
o->hitboxRadius = gDebugInfo[4][0] + 100;
o->hitboxHeight = gDebugInfo[4][1] + 300;
attack_collided_non_mario_object(o);
}