Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/src/game/behaviors/breakable_box.inc.c
7861 views
1
// breakable_box.c.inc
2
3
void bhv_breakable_box_loop(void) {
4
obj_set_hitbox(o, &sBreakableBoxHitbox);
5
cur_obj_set_model(MODEL_BREAKABLE_BOX_SMALL);
6
if (o->oTimer == 0)
7
breakable_box_init();
8
if (cur_obj_was_attacked_or_ground_pounded() != 0) {
9
obj_explode_and_spawn_coins(46.0f, 1);
10
create_sound_spawner(SOUND_GENERAL_BREAK_BOX);
11
}
12
}
13
14