Added images folder, gun muzzle flash and loaded it in main
This commit is contained in:
@ -17,6 +17,8 @@ pygame.init()
|
|||||||
gun = pygame.image.load_animation("gun.webp")
|
gun = pygame.image.load_animation("gun.webp")
|
||||||
print(gun[0])
|
print(gun[0])
|
||||||
|
|
||||||
|
GunFlash = pygame.image.load("images/muzzleflash.png")
|
||||||
|
|
||||||
#Sounds for the gun :3
|
#Sounds for the gun :3
|
||||||
PlaySound = pygame.mixer.Sound.play
|
PlaySound = pygame.mixer.Sound.play
|
||||||
GunBlank = pygame.mixer.Sound("sfx/gun-blank.mp3")
|
GunBlank = pygame.mixer.Sound("sfx/gun-blank.mp3")
|
||||||
@ -66,6 +68,8 @@ while running:
|
|||||||
|
|
||||||
screen.blit(gun[spinInc][0],(0,0))
|
screen.blit(gun[spinInc][0],(0,0))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
|
|
||||||
clock.tick(60)
|
clock.tick(60)
|
||||||
|
|||||||
BIN
images/muzzleflash.png
Normal file
BIN
images/muzzleflash.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
Reference in New Issue
Block a user