From 46993ff5db62ee3ee690b89b6979196d5e88593b Mon Sep 17 00:00:00 2001 From: b Date: Fri, 27 Mar 2026 08:39:28 +0100 Subject: [PATCH] separate condition for adding and removing platforms --- molpydown.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/molpydown.py b/molpydown.py index 23a2e97..5c38319 100644 --- a/molpydown.py +++ b/molpydown.py @@ -581,12 +581,15 @@ class MolpyUp: while True: if len(self.platforms) < 1: return - if self.platforms[0][1] - self.cameray >= - self.platformSandHeight - self.sy // 12: - break - self.generateNewPlatform() - self.platforms.pop(0) - if self.score > 1: - self.score -= 1 + if self.platforms[-1][1] - self.cameray < self.sy * 7 // 6: + self.generateNewPlatform() + if self.score > 1: + self.score -= 1 + continue + if self.platforms[0][1] - self.cameray < - self.platformSandHeight - self.sy // 6: + self.platforms.pop(0) + continue + break for p in self.platforms: rect = pygame.Rect(p[0], p[1], p[7], self.platformSandHeight) colX = self.playerx % self.sx -- 2.30.2