Added images folder, gun muzzle flash and loaded it in main
This commit is contained in:
@ -7,7 +7,7 @@ def fire():#LETS GO GAMBLING
|
||||
#remember to add shock
|
||||
else:
|
||||
PlaySound(GunBlank)
|
||||
|
||||
|
||||
screenw = 1280
|
||||
screenh = 1080
|
||||
yOffset = 0
|
||||
@ -17,6 +17,8 @@ pygame.init()
|
||||
gun = pygame.image.load_animation("gun.webp")
|
||||
print(gun[0])
|
||||
|
||||
GunFlash = pygame.image.load("images/muzzleflash.png")
|
||||
|
||||
#Sounds for the gun :3
|
||||
PlaySound = pygame.mixer.Sound.play
|
||||
GunBlank = pygame.mixer.Sound("sfx/gun-blank.mp3")
|
||||
@ -66,6 +68,8 @@ while running:
|
||||
|
||||
screen.blit(gun[spinInc][0],(0,0))
|
||||
|
||||
|
||||
|
||||
pygame.display.flip()
|
||||
|
||||
clock.tick(60)
|
||||
|
||||
Reference in New Issue
Block a user