forked from sakshamchecker/Hacktoberfest-21
-
Notifications
You must be signed in to change notification settings - Fork 0
/
amongusgame.py
117 lines (92 loc) · 1.67 KB
/
amongusgame.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import turtle
BODY_COLOR = 'white'
BODY_SHADOW = ''
GLASS_COLOR = 'skyblue'
GLASS_SHADOW = ''
s = turtle.getscreen()
t = turtle.Turtle()
def body():
"""DRAWS BODY"""
t.pensize(20)
#t.speed(15)
t.fillcolor(BODY_COLOR)
t.begin_fill()
# right side
t.right(90)
t.forward(50)
t.right(180)
t.circle(40, -180)
t.right(180)
t.forward(200)
# head curve
t.right(180)
t.circle(100,-180)
#left side
t.backward(20)
t.left(15)
t.circle(500,-20)
t.backward(20)
#t.backward(200)
t.circle(-40,-180)
#t.right(90)
t.left(7)
t.backward(50)
#hip
t.up()
t.left(90)
t.forward(10)
t.right(90)
t.down()
#t.right(180)
#t.circle(25,-180)
t.right(240)
t.circle(50,-70)
t.end_fill()
def glass():
t.up()
t.right()
t.forward(230)
t.left(90)
t.forward(20)
t.right(90)
t.down()
t.fillcolor(GLASS_COLOR)
t.begin_fill()
t.right(150)
t.circle(90,-55)
t.right(180)
t.forward(1)
t.right(180)
t.circle(10, -65)
t.right(180)
t.forward(110)
t.right(180)
#t.right(180)
t.circle(50, -190)
t.right(170)
t.forward(80)
#t.right(180)
t.circle(50, -190)
t.right(170)
t.forward(80)
t.right(180)
t.circle(45, -30)
t.end_fill()
def backpack():
t.up()
t.right(60)
t.forward(100)
t.right(90)
t.forward(75)
t.fillcolor(BODY_COLOR)
t.begin_fill()
t.down()
t.forward(30)
t.right(225)
t.circle(300, -30)
t.right(260)
t.forward(30)
t.end_fill()
body()
glass()
backpack()