change quit from esc to click
This commit is contained in:
parent
48d1736bcf
commit
df02992225
@ -21,11 +21,10 @@ def main():
|
||||
|
||||
pygame.mouse.set_visible(False)
|
||||
|
||||
for keyboard_event in pygame.event.get():
|
||||
if keyboard_event.type == pygame.QUIT:
|
||||
for event in pygame.event.get():
|
||||
if event.type == pygame.QUIT:
|
||||
running = False
|
||||
if keyboard_event.type == pygame.KEYDOWN:
|
||||
if keyboard_event.key == pygame.K_ESCAPE:
|
||||
if event.type == pygame.MOUSEBUTTONDOWN:
|
||||
running = False
|
||||
|
||||
rainbow_pos %= 1530
|
||||
|
Loading…
Reference in New Issue
Block a user