Made the render code not have stupid-ass organisation
This commit is contained in:
11
__main__.py
11
__main__.py
@ -8,7 +8,7 @@ def fire():#LETS GO GAMBLING
|
||||
else:
|
||||
PlaySound(GunBlank)
|
||||
|
||||
screenw = 1280
|
||||
screenw = 730
|
||||
screenh = 1080
|
||||
yOffset = 0
|
||||
|
||||
@ -52,11 +52,7 @@ while running:
|
||||
startSpin = True
|
||||
PlaySound(GunSpin)
|
||||
|
||||
#screen code
|
||||
screen.fill("black")
|
||||
|
||||
pygame.draw.rect(MainSurface, (30,30,30), (0,0,300,100))
|
||||
screen.blit(MainSurface,(0,yOffset))
|
||||
|
||||
#gun code WOO
|
||||
if startSpin == True or spinning == True:#check if space was pressed or if the gun is already spinning
|
||||
@ -68,9 +64,12 @@ while running:
|
||||
startSpin = False #what did i say bitch? stop spinning
|
||||
fire() #check if the user gets shot
|
||||
|
||||
screen.blit(gun[spinInc][0],(0,0))#draw the gun
|
||||
|
||||
#screen code
|
||||
screen.fill("black")
|
||||
|
||||
MainSurface.blit(gun[spinInc][0],(0,0))#draw the gun
|
||||
screen.blit(MainSurface,(0,yOffset))
|
||||
|
||||
pygame.display.flip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user