diff --git a/__main__.py b/__main__.py index 89cd716..ed08595 100644 --- a/__main__.py +++ b/__main__.py @@ -17,7 +17,9 @@ GunSpin = pygame.mixer.Sound("sfx/gun-spin.mp3") screen = pygame.display.set_mode((screenw,screenh)) MainSurface = pygame.Surface((screenw,screenh-yOffset)) clock = pygame.time.Clock() + running = True #you better start running... +startSpin = False while running: for event in pygame.event.get(): @@ -30,8 +32,12 @@ while running: PlaySound(GunShot) elif event.key == pygame.K_3: PlaySound(GunSpin) + elif event.key == pygame.K_SPACE: + startSpin = True + #revolver code + #screen code screen.fill("black") pygame.draw.rect(MainSurface, (30,30,30), (0,0,300,100))