completely different, is now line test

This commit is contained in:
Nicholas Dyer 2023-02-19 12:08:00 -05:00
parent ec82eb03ed
commit 12ca90e32e
No known key found for this signature in database
GPG Key ID: E4E6388793FA2105
1 changed files with 10 additions and 18 deletions

View File

@ -21,25 +21,17 @@ def game():
clock = pygame.time.Clock()
for i in range(5):
window.fill((255, 0, 0))
while True:
clock.tick(60)
window.fill((0, 0, 0))
mouse_pos = pygame.mouse.get_pos()
pygame.draw.line(window, (255, 255, 255), (720/2, 720/2), mouse_pos, 5)
pygame.display.flip()
time.sleep(0.25)
window.fill((255, 255, 0))
pygame.display.flip()
time.sleep(0.25)
window.fill((0, 255, 0))
pygame.display.flip()
time.sleep(0.25)
window.fill((0, 255, 255))
pygame.display.flip()
time.sleep(0.25)
window.fill((0, 0, 255))
pygame.display.flip()
time.sleep(0.25)
window.fill((255, 0, 255))
pygame.display.flip()
time.sleep(0.25)
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
pygame.quit()