Created
April 20, 2020 21:02
-
-
Save LevBravE/ce717cbbc8419e00dc03a25339decf10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 301, 301 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
while running: | |
screen.fill((0, 0, 0)) | |
for event in pygame.event.get(): | |
if event.type == pygame.QUIT: | |
running = False | |
if event.type == pygame.MOUSEMOTION: | |
pygame.draw.circle(screen, (0, 0, 255), event.pos, 20) | |
pygame.display.flip() | |
clock.tick(50) | |
pygame.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment