diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-11-14 23:11:54 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-11-14 23:11:54 (GMT) |
commit | 0976fe99bb530974161fd78d6ed0577e6dd1214b (patch) | |
tree | 0f4aa736342eca91592580bf2e8b70e5313b1728 | |
parent | 3f8c11ec39d494228a119990ccfe6306fa3a29bf (diff) |
translate congrants
-rw-r--r-- | data/images/fim_fase.png | bin | 75450 -> 69083 bytes | |||
-rwxr-xr-x | gambiarra.py | 8 | ||||
-rw-r--r-- | levels.py | 3 | ||||
-rwxr-xr-x[-rw-r--r--] | setup.py | 0 |
4 files changed, 10 insertions, 1 deletions
diff --git a/data/images/fim_fase.png b/data/images/fim_fase.png Binary files differindex 5b4e001..8023df9 100644 --- a/data/images/fim_fase.png +++ b/data/images/fim_fase.png diff --git a/gambiarra.py b/gambiarra.py index 6df486d..3e9dd9f 100755 --- a/gambiarra.py +++ b/gambiarra.py @@ -29,6 +29,8 @@ from command import Play, Help, Quit from gamemenu import GameMenu import levels as Levels +from gettext import gettext as _ + from objects import Esteira, check_collision class Game(): @@ -65,10 +67,14 @@ class Game(): self.menu = GameMenu() self.congrats = pygame.image.load(os.path.join("data","images", "fim_fase.png")) + self._fuente = pygame.font.Font(None, 80) + msg = self._fuente.render(_('Congratulations'), 1, (0, 0, 0)) + self.congrats.blit(msg, (80, 200)) if self.play_sounds: pygame.mixer.init() snd_file = os.path.join("data", "snd", "Congrats.wav") self.congrats_snd = pygame.mixer.Sound(snd_file) + def run(self): self.load_all() @@ -161,6 +167,8 @@ class Game(): if self.play_sounds: pygame.mixer.stop() self.congrats_snd.play() + + self.screen.blit(self.congrats, (600 - self.congrats.get_width()/2, 450 - self.congrats.get_height()/2) ) @@ -22,7 +22,8 @@ import gtk import pygame import os -import simplejson as json +#import simplejson as json +import json from objects import * from command import Play, Help, Quit |