From 65c153e4938bad79bacef69dc23aa383772ec4e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Patrick=20Sch=C3=B6nberger?= Date: Wed, 30 Sep 2020 20:25:21 +0200 Subject: [PATCH 1/1] pre revert --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f6d131b..cabe3de 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -95,7 +95,7 @@ struct Player { x += x_vel; y += y_vel; if (!collision_y(1) && y_vel < 9) - y_vel += 1; + y_vel += 0.001; if (abs(x - x_screen) >= 1 || abs(x - x_screen) >= 1) { clear(); draw(); @@ -295,7 +295,7 @@ int WinMain(HINSTANCE a0, HINSTANCE a1, LPSTR a2, int a3) { if (key_down(Key::Right) && !player.collision_x(1)) player.move(+1, 0); if (key_pressed(Key::Jump) && player.collision_y(1)) - player.y_vel = -5; + player.y_vel = -0.001; player.update(); -- 2.50.1