Answers for "pygame loop sound"

7

pygame play sound

import pygame

pygame.mixer.init()
crash_sound = pygame.mixer.Sound("crash.wav")
crash_sound.play()
Posted by: Guest on July-14-2020
1

pygame mute import message

import contextlib
with contextlib.redirect_stdout(None):
    import pygame
Posted by: Guest on October-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language