Compare commits
5 Commits
65d51b66b4
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
a2f6bc2f9f | ||
|
228e3f91cb | ||
|
2a0301aefb | ||
|
e8827f419e | ||
|
ae7c05c88d |
14
Main.py
14
Main.py
@@ -21,7 +21,7 @@ SCREEN_TITLE = "Space Invaders"
|
|||||||
PLAYER_SPEED = 1
|
PLAYER_SPEED = 1
|
||||||
|
|
||||||
PLAYER_BOUNDS = 32
|
PLAYER_BOUNDS = 32
|
||||||
ALIEN_BOUNDS = 32
|
ALIEN_BOUNDS = 16
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -236,10 +236,10 @@ class MyGame(arcade.Window):
|
|||||||
# self.play_death_animation()
|
# self.play_death_animation()
|
||||||
self.respawn()
|
self.respawn()
|
||||||
else:
|
else:
|
||||||
if DEBUG:
|
|
||||||
print("\n" * 100)
|
print("\n" * 100)
|
||||||
print("You scored: " + str(self.Score))
|
print("You scored: " + str(self.Score))
|
||||||
print("You died on level: " + str(self.level))
|
print("You died on level: " + str(self.level))
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
@@ -251,8 +251,8 @@ class MyGame(arcade.Window):
|
|||||||
testx = random.randint(0, 5 + 100 - self.level * 5)
|
testx = random.randint(0, 5 + 100 - self.level * 5)
|
||||||
testy = random.randint(0, 11 + 100 - self.level * 5)
|
testy = random.randint(0, 11 + 100 - self.level * 5)
|
||||||
|
|
||||||
testx = 500
|
# testx = 500
|
||||||
testy = 500
|
# testy = 500
|
||||||
|
|
||||||
if self.alienCounterY < 0:
|
if self.alienCounterY < 0:
|
||||||
# Reset the X and Y counter variables
|
# Reset the X and Y counter variables
|
||||||
|
Reference in New Issue
Block a user