Testing for gun sfx
This commit is contained in:
@ -22,6 +22,14 @@ while running:
|
|||||||
for event in pygame.event.get():
|
for event in pygame.event.get():
|
||||||
if event.type == pygame.QUIT:
|
if event.type == pygame.QUIT:
|
||||||
running = False
|
running = False
|
||||||
|
elif event.type == pygame.KEYDOWN:
|
||||||
|
if event.key == pygame.K_1:
|
||||||
|
PlaySound(GunBlank)
|
||||||
|
elif event.key == pygame.K_2:
|
||||||
|
PlaySound(GunShot)
|
||||||
|
elif event.key == pygame.K_3:
|
||||||
|
PlaySound(GunSpin)
|
||||||
|
|
||||||
|
|
||||||
screen.fill("black")
|
screen.fill("black")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user