Added gun firing logic
This commit is contained in:
@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user