Adjust explosion hitbox

main
En Yi 2024-11-09 12:56:51 +08:00
parent c33f6f0df0
commit abdf246382
2 changed files with 2 additions and 2 deletions

View File

@ -1739,7 +1739,7 @@ void hitbox_update_system(Scene_t* scene)
}
else
{
p_clifetimer->life_time = 0.05f;
p_clifetimer->life_time = 0.1f;
}
}
else

View File

@ -233,7 +233,7 @@ Entity_t* create_explosion(EntityManager_t* ent_manager)
CTransform_t* p_ctransform = add_component(p_explosion, CTRANSFORM_COMP_T);
p_ctransform->movement_mode = KINEMATIC_MOVEMENT;
p_ctransform->active = true;
const int hitbox_sz = TILE_SIZE + 40;
const int hitbox_sz = (TILE_SIZE << 1) + (TILE_SIZE >> 1);
p_hitbox->boxes[0] = (Rectangle){-(hitbox_sz >> 1), -(hitbox_sz >> 1), hitbox_sz, hitbox_sz};
CSprite_t* p_cspr = add_component(p_explosion, CSPRITE_T);