Adjust player swimming behaviour

Internal Changelog:
- Slightly increase upthrust
- Slightly reduce air time
main
En Yi 2024-08-13 18:17:33 +08:00
parent 979533092e
commit c3924c862b
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ void floating_particle_system_update(Particle_t* part, void* user_data, float de
bool check_in_water(const ParticleEmitter_t* emitter, float delta_time);
static const Vector2 GRAVITY = {0, GRAV_ACCEL};
static const Vector2 UPTHRUST = {0, -GRAV_ACCEL * 1.1};
static const Vector2 UPTHRUST = {0, -GRAV_ACCEL * 1.15};
static inline unsigned int get_tile_idx(int x, int y, TileGrid_t gridmap)
{

View File

@ -104,7 +104,7 @@ Entity_t* create_player(EntityManager_t* ent_manager)
CAirTimer_t* p_air = add_component(p_ent, CAIRTIMER_T);
p_air->max_count = 10;
p_air->curr_count = 10;
p_air->max_ftimer = 1.0f;
p_air->max_ftimer = 0.9f;
p_air->decay_rate = 1.0f;
CSprite_t* p_cspr = add_component(p_ent, CSPRITE_T);