diff --git a/main.py b/main.py index cf19df3..9ec0c03 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,7 @@ WIDTH, HEIGHT = 900, 500 WIN = pygame.display.set_mode((WIDTH, HEIGHT)) -pygame.display.set_caption("First Game!") +pygame.display.set_caption("Spaceship Game!") WHITE = (255, 255, 255) BLACK = (0, 0, 0) @@ -14,8 +14,8 @@ BORDER = pygame.Rect(WIDTH//2 - 5, 0, 10, HEIGHT) -#BULLET_HIT_SOUND = pygame.mixer.Sound('Assets/Grenade+1.mp3') -#BULLET_FIRE_SOUND = pygame.mixer.Sound('Assets/Gun+Silencer.mp3') +BULLET_HIT_SOUND = pygame.mixer.Sound('Assets/Grenade+1.mp3') +BULLET_FIRE_SOUND = pygame.mixer.Sound('Assets/Gun+Silencer.mp3') HEALTH_FONT = pygame.font.SysFont('comicsans', 40) WINNER_FONT = pygame.font.SysFont('comicsans', 100) @@ -138,21 +138,21 @@ def main(): bullet = pygame.Rect( yellow.x + yellow.width, yellow.y + yellow.height//2 - 2, 10, 5) yellow_bullets.append(bullet) - #BULLET_FIRE_SOUND.play() + BULLET_FIRE_SOUND.play() if event.key == pygame.K_RCTRL and len(red_bullets) < MAX_BULLETS: bullet = pygame.Rect( red.x, red.y + red.height//2 - 2, 10, 5) red_bullets.append(bullet) - #BULLET_FIRE_SOUND.play() + BULLET_FIRE_SOUND.play() if event.type == RED_HIT: red_health -= 1 - #BULLET_HIT_SOUND.play() + BULLET_HIT_SOUND.play() if event.type == YELLOW_HIT: yellow_health -= 1 - #BULLET_HIT_SOUND.play() + BULLET_HIT_SOUND.play() winner_text = "" if red_health <= 0: