Changed background colour from testing
This commit is contained in:
parent
b4d835fe70
commit
f08a12d577
1 changed files with 2 additions and 2 deletions
4
game.py
4
game.py
|
@ -81,7 +81,7 @@ def play(window):
|
||||||
target_movement_timeout = target_movement_timeout_default
|
target_movement_timeout = target_movement_timeout_default
|
||||||
|
|
||||||
while PLAYING_GAME:
|
while PLAYING_GAME:
|
||||||
window.fill((13,123,123))
|
window.fill((0,0,0))
|
||||||
|
|
||||||
for event in pygame.event.get():
|
for event in pygame.event.get():
|
||||||
if event.type == pygame.QUIT:
|
if event.type == pygame.QUIT:
|
||||||
|
@ -120,7 +120,7 @@ def play(window):
|
||||||
if bullet.type == "TARGET": continue
|
if bullet.type == "TARGET": continue
|
||||||
target_group.remove(target)
|
target_group.remove(target)
|
||||||
bullet_group.remove(bullet)
|
bullet_group.remove(bullet)
|
||||||
logging.info("Hit Target!")
|
logging.debug("Hit Target!")
|
||||||
player.score += 1
|
player.score += 1
|
||||||
|
|
||||||
hit_list = pygame.sprite.spritecollide(bullet, player_group, True)
|
hit_list = pygame.sprite.spritecollide(bullet, player_group, True)
|
||||||
|
|
Reference in a new issue