diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-04-30 08:28:23 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-04-30 08:28:23 (GMT) |
commit | c0998b265d53f5f5f244a18749a8b942fc958fd3 (patch) | |
tree | 5b67b0f087ff4ff52134356ff56c3c7fe7cb3fb6 /src/api | |
parent | 1b121484bab5913cf0640d58ea82cc8b7d87eeab (diff) |
add hack for pico use
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/Globe.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/api/Globe.py b/src/api/Globe.py index b06002a..e6e1e28 100644 --- a/src/api/Globe.py +++ b/src/api/Globe.py @@ -33,13 +33,14 @@ class Globe(CSprite): center = Image.loadImage(path + 'fondo.png') left = pygame.transform.rotate(up, 90) right = pygame.transform.rotate(down, 90) + pico_der = Image.loadImage(path + 'pico-der.png') horizontal = (h - 68) / 34 vertical = (v - 68) / 34 horizontal = horizontal + 2 vertical = vertical + 2 h = horizontal * 34 - v = vertical * 34 + v = vertical * 34 + 40 self.image = pygame.Surface((h, v)) self.image.fill((255,255,255)) @@ -70,7 +71,10 @@ class Globe(CSprite): self.image.blit(down, (x, y)) else: self.image.blit(center, (x, y)) - + px = (h - 68) / 2 + py = v - 74 + self.image.blit(pico_der, (px, py)) + #self.image = pygame.Surface((34, 34)) #self.image.blit(down_right, (0, 0)) self.image.set_colorkey((255,255,255)) |