Compare commits
2 Commits
42aece206d
...
c6136028a7
| Author | SHA1 | Date | |
|---|---|---|---|
| c6136028a7 | |||
| 02ab60b73e |
@ -7,7 +7,7 @@ def fire():#LETS GO GAMBLING
|
|||||||
#remember to add shock
|
#remember to add shock
|
||||||
else:
|
else:
|
||||||
PlaySound(GunBlank)
|
PlaySound(GunBlank)
|
||||||
|
|
||||||
screenw = 1280
|
screenw = 1280
|
||||||
screenh = 1080
|
screenh = 1080
|
||||||
yOffset = 0
|
yOffset = 0
|
||||||
@ -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")
|
||||||
@ -68,6 +70,8 @@ while running:
|
|||||||
|
|
||||||
screen.blit(gun[spinInc][0],(0,0))#draw the gun
|
screen.blit(gun[spinInc][0],(0,0))#draw the gun
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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