The game was not playable at first because the balls spawned outside the screen apparently. With that fixed however the game is pretty cool, especially for mobile.
I am not sure what caused that issue, but increasing the spawn Y of the balls to at least 30 solves the problem.
From 47ab4276bd69d3ca99d4cf3404aad5ceabbcf1e9 Mon Sep 17 00:00:00 2001
From: metamuffin <metamuffin@disroot.org>
Date: Wed, 10 Jul 2024 12:33:59 +0200
Subject: [PATCH] Fix immediate gameover by spawning balls further down.
---
src/ball.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ball.py b/src/ball.py
index 1733b44..cc2b0c2 100644
--- a/src/ball.py
+++ b/src/ball.py
@@ -19,7 +19,7 @@ class Ball(pygame.sprite.Sprite):
self.image.set_colorkey((255, 255, 255), RLEACCEL)
pygame.draw.circle(self.image, self.get_color(type), (radius, radius), radius)
pygame.draw.circle(self.image, (0, 0, 0), (radius, radius), radius, 2)
- self.rect = self.image.get_rect(midbottom=(start_x, 20))
+ self.rect = self.image.get_rect(midbottom=(start_x, 30))
self.type = type
self.start_x = start_x
@@ -79,6 +79,7 @@ class Ball(pygame.sprite.Sprite):
return False
def die(self):
+ print(self, "killed")
self.kill()
self.rect.move(-self.gamedata.screen_width, 0)
--
2.45.2