File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,9 @@ def update(self):
99
99
if self .arena [y , x ] == "#" :
100
100
self .arena [y , x ] = " "
101
101
102
+ # clear projectiles
102
103
for i in xrange (self .settings .pace ):
103
- for proj in self .projectiles : # update bullets
104
+ for proj in self .projectiles :
104
105
self .arena [proj .pos ] = " "
105
106
106
107
projectiles = [Projectile (move (proj .pos , proj .direction ),
@@ -133,12 +134,12 @@ def updateProjectile(self, proj):
133
134
self .arena [proj .pos ] = render [proj .type ]
134
135
self .projectiles .append (proj )
135
136
elif proj .type == "bullet" :
136
- if self .arena [proj .pos ] == "*" :
137
+ if self .arena [proj .pos ] == "*" and self . inArena ( proj . pos ) :
137
138
self .arena [proj .pos ] = " "
138
139
elif self .arena [proj .pos ] in "<>v^" :
139
140
player = self .findPlayer (proj .pos )
140
141
player .hit (proj .source , proj .type )
141
- elif proj .type == "bomb" and self .arena [proj .pos ] in "#<>v^*" : #explode!
142
+ elif proj .type == "bomb" and self .arena [proj .pos ] in "A #<>v^*" : #explode!
142
143
y , x = proj .pos
143
144
144
145
for player in self .players .values ():
You can’t perform that action at this time.
0 commit comments