diff options
author | Luiz Irber <luiz.irber@gmail.com> | 2008-04-12 00:34:58 (GMT) |
---|---|---|
committer | Luiz Irber <luiz.irber@gmail.com> | 2008-04-12 00:34:58 (GMT) |
commit | 2650e7fa937c087c7c3b71a38a48d5a35c00fc86 (patch) | |
tree | dc06cc89dfcf340d9637803f136dd0960553101b | |
parent | bac3de33a880a21d307015755c57092bcc7d8dd8 (diff) |
substituted the wall images for surfaces
-rw-r--r-- | Gambiarra/objects/wall.py | 21 | ||||
-rwxr-xr-x | data/images/downwall.png | bin | 265 -> 0 bytes | |||
-rwxr-xr-x | data/images/leftwall.png | bin | 261 -> 0 bytes | |||
-rwxr-xr-x | data/images/rightwall.png | bin | 243 -> 0 bytes | |||
-rwxr-xr-x | data/images/upwall.png | bin | 265 -> 0 bytes |
5 files changed, 12 insertions, 9 deletions
diff --git a/Gambiarra/objects/wall.py b/Gambiarra/objects/wall.py index 6b3b52f..a2a0e2d 100644 --- a/Gambiarra/objects/wall.py +++ b/Gambiarra/objects/wall.py @@ -27,9 +27,10 @@ from things import Thing class LeftWall(Thing): def __init__(self, initialPosition = [0,0], editable=False): + image = pygame.Surface( (15, 770) ) + image.fill( (255,255,255) ) super(LeftWall, self).__init__( - pygame.image.load(abspath("data/images/leftwall.png")), - editable, None, + image, editable, None, initialPosition, elasticity = 100, mobility = False, gravity = 10) @@ -43,9 +44,10 @@ class LeftWall(Thing): class RightWall(Thing): def __init__(self, initialPosition = [1185,0], editable=False): + image = pygame.Surface( (15, 770) ) + image.fill( (255,255,255) ) super(RightWall, self).__init__( - pygame.image.load(abspath("data/images/rightwall.png")), - editable, None, + image, editable, None, initialPosition, elasticity = 100, mobility = False, gravity = 10) def collide(self, obj): @@ -58,9 +60,10 @@ class RightWall(Thing): class UpWall(Thing): def __init__(self, initialPosition = [15,0], editable=False): + image = pygame.Surface( (1770, 15) ) + image.fill( (255,255,255) ) super(UpWall, self).__init__( - pygame.image.load(abspath("data/images/upwall.png")), - editable, None, + image, editable, None, initialPosition, elasticity = 100, mobility = False, gravity = 10) @@ -74,9 +77,10 @@ class UpWall(Thing): class DownWall(Thing): def __init__(self, initialPosition = [15,755], editable=False): + image = pygame.Surface( (1770, 15) ) + image.fill( (255,255,255) ) super(DownWall, self).__init__( - pygame.image.load(abspath("data/images/downwall.png")), - editable, None, + image, editable, None, initialPosition, elasticity = 100, mobility = False, gravity = 10) @@ -87,4 +91,3 @@ class DownWall(Thing): obj.speed[1] *= -0.75*obj.elasticity/100 return True return False - diff --git a/data/images/downwall.png b/data/images/downwall.png Binary files differdeleted file mode 100755 index ffa7f99..0000000 --- a/data/images/downwall.png +++ /dev/null diff --git a/data/images/leftwall.png b/data/images/leftwall.png Binary files differdeleted file mode 100755 index 78a220f..0000000 --- a/data/images/leftwall.png +++ /dev/null diff --git a/data/images/rightwall.png b/data/images/rightwall.png Binary files differdeleted file mode 100755 index c9655c1..0000000 --- a/data/images/rightwall.png +++ /dev/null diff --git a/data/images/upwall.png b/data/images/upwall.png Binary files differdeleted file mode 100755 index 52aa06e..0000000 --- a/data/images/upwall.png +++ /dev/null |