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()
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user