Adjust explosion hitbox
parent
c33f6f0df0
commit
abdf246382
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue