Skip to content
Snippets Groups Projects
Commit e6c488c2 authored by Annika Tolvanen's avatar Annika Tolvanen
Browse files

Upload New File

parent 123e4d94
No related branches found
No related tags found
No related merge requests found
yatzy.py 0 → 100644
import random
import yatzy
yatzy.init()
leveys = 600
korkeus = 800
naytto = yatzy.display.set_mode(leveys,korkeus)
yatzy.display.lisaa_otsikko("Yatzy")
aika = yatzy.aika()
kello = 60
#fontti pitää jotenkin ladata ilmeisesti ?
font = yatzy.font.Font('arial', 18)
running = True
while running:
aika.tick(kello)
naytto.fill(backround)
for event in yatzy.event.get():
if even.type == pygame.QUIT:
running = False
yatzy.display.flip()
yatzy.quit()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment