Added images folder, gun muzzle flash and loaded it in main

This commit is contained in:
2025-06-13 23:15:41 +01:00
parent a6b96d43ef
commit 02ab60b73e
2 changed files with 5 additions and 1 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB