From: lbcmk <30442978+lbcmk@users.noreply.github.com> Date: Tue, 12 Jul 2022 15:38:07 +0000 (-0400) Subject: Added a Death Floor X-Git-Url: http://git.skullheadx.com/nixos/static/git-logo.png?a=commitdiff_plain;h=388cab242b28b2301494afafd751fdb037639a55;p=Pygame-Jam.git Added a Death Floor --- diff --git a/Game.py b/Game.py index 9c47a7c..6a98c72 100644 --- a/Game.py +++ b/Game.py @@ -111,6 +111,9 @@ class Game: # screen.fill((255,255,255)) surf.blit(self.sky,(0,0)) + if(self.player.position[1] > 10000): + self.player.dead = True + if(self.level in self.levels[2]): self.sky = pg.image.load("Assets/world/sky_level_background.png").convert()