Add water splash to urchins

main
En Yi 2024-10-05 20:32:11 +08:00
parent db8849a7de
commit b36592311a
1 changed files with 2 additions and 0 deletions

View File

@ -263,6 +263,8 @@ Entity_t* create_urchin(EntityManager_t* ent_manager)
p_ctransform->active = true; p_ctransform->active = true;
add_component(p_urchin, CTILECOORD_COMP_T); add_component(p_urchin, CTILECOORD_COMP_T);
add_component(p_urchin, CMOVEMENTSTATE_T);
CHurtbox_t* p_hurtbox = add_component(p_urchin, CHURTBOX_T); CHurtbox_t* p_hurtbox = add_component(p_urchin, CHURTBOX_T);
p_hurtbox->size = p_bbox->size; p_hurtbox->size = p_bbox->size;
p_hurtbox->def = 2; p_hurtbox->def = 2;