Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- import sys
- import math
- lng=turtle.Screen()
- rs = turtle.Turtle()
- rs.hideturtle()
- rs.penup()
- lng = turtle.Screen()
- lng.bgcolor('white')
- lng.title('???')
- lng.setup(844, 844)
- gal = ("Done!Click on the text to quit!")
- canvas = turtle.getcanvas()
- def end_text():
- rs.goto (-350, 0)
- rs.write(gal, font=("Arial", 30, "bold") )
- def ending():
- ## Some stuff was here before to clean the maze setup turtle and other things, now since this is kind of a jump noone needs it.
- lng.bgcolor("white")
- end_text()
- ## for priesas in priesai: was a "hide enemies" thing
- ## priesas.hideturtle()
- def click_end(event):
- x, y = event.x, event.y
- print('x={}, y={}'.format(x, y))
- if (x >= 60 and x <= 815) and ( y >= 360 and y <= 420):
- turtle.onscreenclick(lambda x, y: sys.exit())
- canvas.bind('<Motion>', click_end)
- ending()
- turtle.done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement