Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

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 <[email protected]>
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

Hmm weird. I didn't have that problem on desktop (1920x1080) or on my L5.
Did you experience this on an L5? Any screen scaling?

Thank you for the patch :) :)

( 1)

Encountered on 2560x1440 without scaling. (Not a L5 xD)

(1 edit)

I did the math and saw how on your resolution, the tops of the balls were starting above the top of the screen. I tried the same again for 4096×2160 (4K) and 30px isn't enough for that.


So, I've updated it instead to use midtop (https://gitlab.com/neilsimp1/double-down/-/commit/62c81010a66c52e100adcc23b1c4e7...). I believe this should work for any screen size now.

I've updated to a 1.0.1 release here, https://gitlab.com/neilsimp1/double-down/-/tags/1.0.1 but I am not sure if it's ok to update what I have submitted to the game jam or not, so I guess I will leave that be for now?