diff --git a/effects/over.mp3 b/effects/over.mp3 index 6cba959..783c743 100644 Binary files a/effects/over.mp3 and b/effects/over.mp3 differ diff --git a/music/bubbles.ogg b/music/bubbles.ogg new file mode 100644 index 0000000..125b060 Binary files /dev/null and b/music/bubbles.ogg differ diff --git a/snake.py b/snake.py index 589a45a..f944295 100644 --- a/snake.py +++ b/snake.py @@ -56,6 +56,8 @@ class Game: curses.init_pair(self.colors['white'], curses.COLOR_WHITE, curses.COLOR_BLACK) # Score/Text self.stdscr.bkgd(' ', curses.color_pair(self.colors['white'])) + curses.set_escdelay(1) + # Get terminal (screen) height and width self.screen_height, self.screen_width = self.stdscr.getmaxyx() @@ -387,7 +389,10 @@ def sound_process(sound_queue): # Load sounds/music (adjust file paths as needed) # Use .wav or .ogg for better compatibility #effect = pygame.mixer.Sound('effects/bing.mp3') - music_file = 'music/QonsVivaEveryone.mp3' + #music_file = 'music/QonsVivaEveryone.mp3' + #music_file = 'music/Aztec.mp3' + #music_file = 'music/Snug_Neon_Artery.mp3' + music_file = 'music/bubbles.ogg' #music_file = 'music/s.mp3' while True: @@ -402,7 +407,7 @@ def sound_process(sound_queue): # Play music if command == 'music.start': pygame.mixer.music.load(music_file) - pygame.mixer.music.set_volume(0.25) + pygame.mixer.music.set_volume(0.5) pygame.mixer.music.play(-1) # Play music indefinitely elif command == 'music.stop': pygame.mixer.music.stop()