|
From: João <lv...@us...> - 2009-12-14 05:51:52
|
This is an automated email from the git, the tree hashes are:
via 6d1d84b351e85b77f8eec32f560a4b75eefeb13a (commit)
from 9f9eb9a15397bcb4f74c686dffcbe9b2f00d7e66 (commit)
- Log -----------------------------------------------------------------
commit 6d1d84b351e85b77f8eec32f560a4b75eefeb13a
Author: João <jcorrea@marvim.(none)>
Date: Mon Dec 14 03:50:17 2009 -0200
Fixed blitting above previous background with transparent images problem.
diff --git a/code/background.py b/code/background.py
index 9ffa766..875728f 100644
--- a/code/background.py
+++ b/code/background.py
@@ -33,7 +33,6 @@ class Layer:
self.L = deque()
self.w = width * image.size[0]
self.h = image.size[1]
- self.back = pygame.Surface((self.w, self.h), SRCALPHA)
self.speed = speed
def subLayer(self, screen):
@@ -57,6 +56,7 @@ class Layer:
"""
This function builds the background layer based on the queue of images L
"""
+ self.back = pygame.Surface((self.w, self.h), SRCALPHA)
# make sure that the queue has enought itens
while len(self.L) < self.width:
self.L.append(self.default_image)
diff --git a/code/game.py b/code/game.py
index 427bac8..ff63094 100644
--- a/code/game.py
+++ b/code/game.py
@@ -452,7 +452,7 @@ class Game:
self.counter = 0
# creates the background
- self.background = Background("earth.jpg", "320.png","321.png")
+ self.background = Background("earth.jpg", "320.png","4.png")
# creates foreground
self.foreground = Foreground()
-----------------------------------------------------------------------
Summary of changes:
code/background.py | 2 +-
code/game.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
Dead Channel is a sci-fi shoot 'em up game developed using pygame.
|