sm64pc/src/game/behaviors/unused_particle_spawn.inc.c

25 lines
583 B
C
Raw Normal View History

2019-08-25 04:46:40 +00:00
/**
* Behavior for bhvUnusedParticleSpawn.
*
* This unused behavior spawns 10 purple particles if Mario collides with its
* associated object.
*/
void bhv_unused_particle_spawn_loop(void) {
s32 i;
2020-03-02 03:42:52 +00:00
cur_obj_update_floor_and_walls();
cur_obj_move_standard(78);
2019-08-25 04:46:40 +00:00
if (o->oMoveFlags & OBJ_MOVE_ON_GROUND) {
2020-03-02 03:42:52 +00:00
obj_mark_for_deletion(o);
2019-08-25 04:46:40 +00:00
}
2020-03-02 03:42:52 +00:00
if (obj_check_if_collided_with_object(o, gMarioObject)) {
obj_mark_for_deletion(o);
2019-08-25 04:46:40 +00:00
for (i = 0; i < 10; i++) {
spawn_object(o, MODEL_PURPLE_MARBLE, bhvPurpleParticle);
}
}
}