Return to repo list

gatemender

Arcade game about fixing warp gates. LibreJam Dec 2020 Entry.
Return to HMagellan.com

commit 5f37184c3c8937f25dc92bfd03956a3614f6bf80
parent b00f66c5fc3054140d2819eff03486ab4e43aedc
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Wed, 16 Dec 2020 15:56:48 -0600

slightly better centering of level transition surfaces

Diffstat:
Msrc/game.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/game.py b/src/game.py @@ -337,11 +337,11 @@ class Game(object): else: self.screen.blit(self.images["Info"], (0, 0)) elif self.mode == MODES.Transition: - self.lives_text = self.font.render(" X " + str(self.lives), False, (255, 255, 255)) + self.lives_text = self.font.render("X " + str(self.lives), False, (255, 255, 255)) self.screen.fill((0, 0, 0)) - self.screen.blit(self.images["Ship"], (self.screen_rect.centerx - 30, 280)) - self.screen.blit(self.lives_text, (self.screen_rect.centerx + 30, 280)) - self.screen.blit(self.level_text, (self.screen_rect.centerx, 380)) + self.screen.blit(self.images["Ship"], (self.screen_rect.centerx - 54, 280)) + self.screen.blit(self.lives_text, (self.screen_rect.centerx - 10, 280)) + self.screen.blit(self.level_text, (self.screen_rect.centerx - 50, 380)) elif self.mode == MODES.GameOver: self.screen.fill((0, 0, 0)) self.screen.blit(self.game_over_text, self.game_over_text_rect)