completely different, is now line test
This commit is contained in:
parent
ec82eb03ed
commit
12ca90e32e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue