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

View File

@ -21,25 +21,17 @@ def game():
clock = pygame.time.Clock() clock = pygame.time.Clock()
for i in range(5): while True:
window.fill((255, 0, 0)) 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() pygame.display.flip()
time.sleep(0.25)
window.fill((255, 255, 0)) for event in pygame.event.get():
pygame.display.flip() if event.type == pygame.QUIT:
time.sleep(0.25) pygame.quit()
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)
pygame.quit() pygame.quit()