Made the render code not have stupid-ass organisation

This commit is contained in:
2025-06-13 23:43:39 +01:00
parent 087c751cd1
commit ada32fb765

View File

@ -8,7 +8,7 @@ def fire():#LETS GO GAMBLING
else: else:
PlaySound(GunBlank) PlaySound(GunBlank)
screenw = 1280 screenw = 730
screenh = 1080 screenh = 1080
yOffset = 0 yOffset = 0
@ -52,11 +52,7 @@ while running:
startSpin = True startSpin = True
PlaySound(GunSpin) 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 #gun code WOO
if startSpin == True or spinning == True:#check if space was pressed or if the gun is already spinning 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 startSpin = False #what did i say bitch? stop spinning
fire() #check if the user gets shot 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() pygame.display.flip()