From 458e0005690ea9d579588a0a12368fc2c2c9a93a Mon Sep 17 00:00:00 2001 From: untodesu Date: Tue, 1 Jul 2025 03:08:39 +0500 Subject: I hyper-focued on refactoring again - I put a cool-sounding "we are number one" remix on repeat and straight up grinded the entire repository to a better state until 03:09 AM. I guess I have something wrong in my brain that makes me do this shit --- game/client/entity/player_move.hh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 game/client/entity/player_move.hh (limited to 'game/client/entity/player_move.hh') diff --git a/game/client/entity/player_move.hh b/game/client/entity/player_move.hh new file mode 100644 index 0000000..aa221f3 --- /dev/null +++ b/game/client/entity/player_move.hh @@ -0,0 +1,19 @@ +#ifndef CLIENT_PLAYER_MOVE_HH +#define CLIENT_PLAYER_MOVE_HH 1 +#pragma once + +constexpr static float PMOVE_MAX_SPEED_AIR = 16.0f; +constexpr static float PMOVE_MAX_SPEED_GROUND = 8.0f; +constexpr static float PMOVE_ACCELERATION_AIR = 3.0f; +constexpr static float PMOVE_ACCELERATION_GROUND = 6.0f; +constexpr static float PMOVE_FRICTION_GROUND = 10.0f; +constexpr static float PMOVE_JUMP_FORCE = 0.275f; + +namespace entity::player_move +{ +void init(void); +void fixed_update(void); +void update_late(void); +} // namespace entity::player_move + +#endif // CLIENT_PLAYER_MOVE_HH -- cgit