Newer
Older
import pygame
def alusta():
pygame.init()
naytto = pygame.display.set_mode((480, 640))
return naytto
def piirra(naytto, x: int, y: int):
pygame.draw.circle(naytto, (255,255,255), (x,y), 80)
pygame.draw.circle(naytto, (255,255,255), (x,y-140), 60)
pygame.draw.circle(naytto, (255,255,255), (x,y-240), 40)
ukko_x=240
ukko_y=420
NOPEUS=0.2
naytto=alusta()
pygame.time.Clock()
while True:
for tapahtua in pygame.event.get():
exit()
naytto.fill((0,0,0))
lumiukko=piirra(naytto, ukko_x, ukko_y)
pygame.display.flip()