|
From: João <lv...@us...> - 2009-12-09 04:40:37
|
This is an automated email from the git, the tree hashes are:
via 22834a80deaaba31a648a7035f7bec990280582f (commit)
from 03fe38a92960e0df882a7dc16564deeb321b4014 (commit)
- Log -----------------------------------------------------------------
commit 22834a80deaaba31a648a7035f7bec990280582f
Author: João <jcorrea@marvim.(none)>
Date: Wed Dec 9 02:39:58 2009 -0200
Making screen creation outside build
diff --git a/code/background.py b/code/background.py
index ad2caf7..5e895a1 100644
--- a/code/background.py
+++ b/code/background.py
@@ -30,6 +30,7 @@ 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)
def subLayer(self, screen):
s = screen.get_size()
@@ -39,7 +40,7 @@ class Layer:
self.pos[0] -= 1
def build(self):
- self.back = pygame.Surface((self.w, self.h), SRCALPHA)
+# self.back = pygame.Surface((self.w, self.h), SRCALPHA)
# checks if the number of images is OK
while len(self.L) < self.width:
self.L.append(self.default_image)
-----------------------------------------------------------------------
Summary of changes:
code/background.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
--
Dead Channel is a sci-fi shoot 'em up game developed using pygame.
|