a-game

2D platformer written from scratch.
git clone git://git.amin.space/a-game.git
Log | Files | Refs | README | LICENSE

commit 1c868ff4540e8ba7b8816753045c2360f2438bea
parent 5f205874d0ea3068b4f0b8a023835ad409a96b25
Author: amin <dev@aminmesbah.com>
Date:   Sun,  9 Feb 2020 01:12:33 +0000

Switch jump height to one meter

FossilOrigin-Name: ebbf78bf48893142807ee65be71942ec30c8e65aeeb6db98b701a66e59bf1c72
Diffstat:
Msrc/game.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/game.c b/src/game.c @@ -432,7 +432,7 @@ void game_update_and_render(struct GameMemory *game_memory, struct GameInput *ga break; case MOVE_MODE_JUMPING: { - f32 jump_height = 2.0f; + f32 jump_height = 1.0f; // v^2 = v0^2 - 2g(y - y0) // 0 = v0^2 - 2g(h - 0) // 0 = v0^2 - 2gh