ITS THAT TIME!!!!!
This commit is contained in:
parent
6c011f11a7
commit
5be6439493
4
Main.py
4
Main.py
@ -76,7 +76,7 @@ class MyGame(arcade.Window):
|
|||||||
self.wall_list = arcade.SpriteList(use_spatial_hash=True)
|
self.wall_list = arcade.SpriteList(use_spatial_hash=True)
|
||||||
self.rend = 0
|
self.rend = 0
|
||||||
self.lives = 3
|
self.lives = 3
|
||||||
self.level = 50
|
self.level = 0
|
||||||
self.score = None
|
self.score = None
|
||||||
# self.overlay_color = (0,255,0,128)
|
# self.overlay_color = (0,255,0,128)
|
||||||
self.player_sprite_death = None
|
self.player_sprite_death = None
|
||||||
@ -271,7 +271,7 @@ class MyGame(arcade.Window):
|
|||||||
for index, alien in enumerate(alienx):
|
for index, alien in enumerate(alienx):
|
||||||
try:
|
try:
|
||||||
alien.checkBullet()
|
alien.checkBullet()
|
||||||
if indexx == testx and index == testy:
|
if indexx == testx and index == testy and alien.bullet == None:
|
||||||
alien.spawnBullet()
|
alien.spawnBullet()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user