How do I add it where whenever I hit the floor the game ends
I’m trying to make it so that whenever the character hits the floor the game ends. I am only new to pygame and am trying to make this game without the use of following a tutorial step by step. I can’t find an answer anywhere online about my problem without having to completely redo my code. Any help would be appreciated. ps I know the code itself is probably horrible but I’ll get better as I learn more!