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