Compare commits
2 Commits
ce84014668
...
bc0f7617d4
Author | SHA1 | Date |
---|---|---|
|
bc0f7617d4 | |
|
7a4cf55c06 |
|
@ -1710,13 +1710,15 @@ void hitbox_update_system(Scene_t* scene)
|
|||
{
|
||||
if (p_ent->position.y + p_bbox->size.y <= p_other_ent->position.y)
|
||||
{
|
||||
CJump_t * p_cjump = get_component(p_ent, CJUMP_COMP_T);
|
||||
// Don't allow the usual jump interaction with crate jump
|
||||
p_cjump->short_hop = true;
|
||||
p_cjump->jumped = false;
|
||||
|
||||
p_ctransform->velocity.y = -400;
|
||||
if (p_pstate->jump_pressed)
|
||||
{
|
||||
p_ctransform->velocity.y = -600;
|
||||
CJump_t * p_cjump = get_component(p_ent, CJUMP_COMP_T);
|
||||
p_cjump->short_hop = false;
|
||||
p_cjump->jumped = true;
|
||||
}
|
||||
if (p_ent->m_tag == PLAYER_ENT_TAG)
|
||||
{
|
||||
|
|
|
@ -289,7 +289,7 @@ void update_water_runner_system(Scene_t* scene)
|
|||
break;
|
||||
case SCANLINE_FILL:
|
||||
{
|
||||
const float FILL_RATE = 1.0f/24;
|
||||
const float FILL_RATE = 1.0f/20;
|
||||
p_crunner->fractional += scene->delta_time;
|
||||
if (p_crunner->fractional < FILL_RATE) break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue