From ada32fb765e96c737f36e1cd42e9506b433c2fc6 Mon Sep 17 00:00:00 2001 From: TRS_MML Date: Fri, 13 Jun 2025 23:43:39 +0100 Subject: [PATCH] Made the render code not have stupid-ass organisation --- __main__.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/__main__.py b/__main__.py index a4db13e..09576d6 100644 --- a/__main__.py +++ b/__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()