Circle Wars Python Game

This commit is contained in:
justin committed 2025-11-18 11:56:38 -07:00
1 parent bdc24f4832
commit c12c8ad0f5
7 files changed
+9 -9

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+9 -9
View File
@@ -41,21 +41,21 @@ def load_sound(filename):
return None return None
# Load sounds # Load sounds
GO_SOUND = load_sound("audio_go.wav") GO_SOUND = load_sound("audio-go.wav")
FIRE_SOUND = load_sound("audio_playerfire.wav") FIRE_SOUND = load_sound("audio-playerfire.wav")
DIE_SOUND = load_sound("audio_playerdeath.wav") DIE_SOUND = load_sound("audio-playerdeath.wav")
LEVEL_UP_SOUND = load_sound("audio_levelup.wav") LEVEL_UP_SOUND = load_sound("audio-levelup.wav")
ENEMY_DEATH_SOUND = load_sound("audio_enemydeath.wav") ENEMY_DEATH_SOUND = load_sound("audio-enemydeath.wav")
EXPLOSION_SOUND = load_sound("audio_playerdeath.wav") EXPLOSION_SOUND = load_sound("audio-playerdeath.wav")
# Load background music (pygame.mixer.music) # Load background music (pygame.mixer.music)
if os.path.exists("audio_music.mp3"): if os.path.exists("audio-music.mp3"):
try: try:
pygame.mixer.music.load("audio_music.mp3") pygame.mixer.music.load("audio-music.mp3")
except Exception as e: except Exception as e:
print(f"Error loading background music: {e}") print(f"Error loading background music: {e}")
else: else:
print("Warning: audio_music.mp3 not found. Background music disabled.") print("Warning: audio-music.mp3 not found. Background music disabled.")
# Set font for score # Set font for score
font = pygame.font.SysFont(None, 30) font = pygame.font.SysFont(None, 30)