Skip to content
Snippets Groups Projects
Commit 5ec11958 authored by Sini Aho's avatar Sini Aho
Browse files

Upload New File

parent 011f09a7
No related branches found
No related tags found
No related merge requests found
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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment