Added gun firing logic

This commit is contained in:
2025-06-13 22:54:06 +01:00
parent 2ec9005aa6
commit 6c277570aa

View File

@ -1,6 +1,13 @@
import pygame
from random import randint
def fire():#LETS GO GAMBLING
if randint(1,6) == 6:
PlaySound(GunShot)
#remember to add shock
else:
PlaySound(GunBlank)
screenw = 1280
screenh = 1080
yOffset = 0
@ -54,6 +61,7 @@ while running:
spinInc = 0
spinning = False
startSpin = False
fire()
screen.blit(gun[spinInc][0],(0,0))