From 60bc1f4bf361aafad85cc4300c9f0ea0cbb19963 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:07:38 +0200 Subject: [PATCH] Fixed Floating fixed a bug that when you jump too much, you start to fly. --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 2d95b4b..fd2f236 100644 --- a/main.py +++ b/main.py @@ -95,6 +95,7 @@ def jump(self): self.dino_rect.y -= self.jump_vel * 4 self.jump_vel -= 0.8 if self.jump_vel < - self.JUMP_VEL: + self.dino_rect.y = self.Y_POS self.dino_jump = False self.jump_vel = self.JUMP_VEL