-
Notifications
You must be signed in to change notification settings - Fork 0
/
secret.py
214 lines (150 loc) · 6.28 KB
/
secret.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
import pygame
import os
def secret(screen_length,screen_height, dim_field, screen, mplayer_rect, quote):
screen.fill((255,182,193))
#Header
header_rect = pygame.Rect(0, 0, 470, 30)
#pos x, pos y, width, length
pygame.draw.rect(screen, (238,162,173), header_rect)
#Quote Area
#Header
header_rect = pygame.Rect(0, 310, 470, 50)
#pos x, pos y, width, length
pygame.draw.rect(screen, (238,162,173), header_rect)
pygame.font.init()
font = pygame.font.Font("./Bungee-Regular.ttf",15)
direct_title = font.render("Secret Mohan",True,(0,0,0))
show_direct_title = True
start_time = pygame.time.get_ticks()
if (show_direct_title):
now_time = pygame.time.get_ticks()
if (now_time - start_time > 500):
show_direct_title = False
if (show_direct_title):
screen.blit(direct_title,(180, 7))
home_rect3 = pygame.Rect(420, 5, 40, 20)
pygame.draw.rect(screen, (205,140,149), home_rect3)
font = pygame.font.Font("./Staatliches-Regular.ttf",15)
home = font.render("Home",True,(0,0,0))
show_home = True
start_time = pygame.time.get_ticks()
if (show_home):
now_time = pygame.time.get_ticks()
if (now_time - start_time > 500):
show_home = False
if (show_home):
screen.blit(home,(426, 5))
#mohan boundaries
if mplayer_rect.left < 0:
mplayer_rect.left = 0
if mplayer_rect.right > screen_length:
mplayer_rect.right = screen_length
if mplayer_rect.bottom > 310:
mplayer_rect.bottom = 310
if mplayer_rect.top < 30:
mplayer_rect.top = 30
font = pygame.font.Font("./Bungee-Regular.ttf",11)
the_quote = str(quote)
a_quote = font.render(the_quote,True,(0,0,0))
show_a_quote = True
start_time = pygame.time.get_ticks()
if (show_a_quote):
now_time = pygame.time.get_ticks()
if (now_time - start_time > 500):
show_a_quote = False
if (show_a_quote):
screen.blit(a_quote,(10, 325))
for event in pygame.event.get():
if event.type == pygame.MOUSEBUTTONUP:
pos = pygame.mouse.get_pos()
if home_rect3.collidepoint(pos):
return "home"
return "secret"
# mentor_list = [player_rect, hannah_rect, jonny_rect, josh_rect, michael_rect, gplayer_rect, diego_rect, akshat_rect, nplayer_rect, younus_rect, elisa_rect, henryl_rect, henryx_rect, jenelle_rect, lindsey_rect, tristin_rect, prothit_rect, nikki_rect, yukati_rect, john_rect]
# quote_list = ["curt quote", "hannah quote", "jonny quote", "josh quote", "Do or do not. There is no try. – Michael","I'm gonna spill some hot tea!!! - Gary", "You miss 100% of the naps you don't take. - Akshat","I want to thank the students for starting a cult in my name - Niema", "Does Geisel have a lot of books? - Younus" , "Start Early, Start Often. - Elisa", "henry l quote", "Not all who wonder are lost. - Henry X", "Jenelle uote", "Be the best version of yourself - Lindsey", "Shoot for the moon. If you miss you'll land amongst the stars. - Tristin", "When life gives you lemons make lemonade - Prothit" , "Nikki quote", "SHEEEEEEEEEEEEEEEEEEEEEEEEEEEESH - Yukati", "Live, laugh, Love - John"]
#Gary's quote:
#"I'm gonna some hot tea!!!" - Gary
#Niema's quote:
#"I want to thank the students for starting a cult in my name" - Niema
#Curt's quote:
#
#Michael quote:
#"Do or do not. There is no try." – Michael
#Diego's quote:
#"Your mom. - Diego"
#Elisa quote:
#"Start Early, Start Often. - Elisa"
#Prothit quote:
#"When life gives you lemons make lemonade - Prothit"
#Lindsey quote:
#"Be the best version of yourself - Lindsey"
#John quote:
#"Live, laugh, Love - John"
#Henry X quote:
#"Not all who wonder are lost. - Henry"
#Tristin quote:
#"Shoot for the moon. If you miss you'll land amongst the stars. - Tristin"
#Akshat quote:
#"You miss 100% of the naps you don't take. - Akshat"
#Yukati quote:
#"SHEEEEEEEEEEEEEEEEEEEEEEEEEEEESH - Yukati"
#Younus quote:
#"Does Geisel have a lot of books? - Younus"
#Josh quote:
#
#Jonny quote:
#
#Hannah quote:
#
#Jennelle quote:
#
#Henry L quote:
#
#Nikki quote:
#
def m_walls(screen_length,screen_height, dim_field, screen, mplayer_rect):
#mohan walls -- 2025
#First two
two_rect1 = pygame.Rect(45, 110, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), two_rect1)
two_rect2 = pygame.Rect(95, 110, 15, 55)
pygame.draw.rect(screen, (255, 255, 255), two_rect2)
two_rect3 = pygame.Rect(45, 150, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), two_rect3)
two_rect4 = pygame.Rect(45, 170, 15, 45)
pygame.draw.rect(screen, (255, 255, 255), two_rect4)
two_rect5 = pygame.Rect(65, 200, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), two_rect5)
#Zero
zero_rect1 = pygame.Rect(145, 110, 70, 15)
pygame.draw.rect(screen, (255, 255, 255), zero_rect1)
zero_rect2 = pygame.Rect(145, 200, 70, 15)
pygame.draw.rect(screen, (255, 255, 255), zero_rect2)
zero_rect3 = pygame.Rect(145, 130, 15, 65)
pygame.draw.rect(screen, (255, 255, 255), zero_rect3)
zero_rect4 = pygame.Rect(200, 130, 15, 65)
pygame.draw.rect(screen, (255, 255, 255), zero_rect4)
#Second two
two_rect6 = pygame.Rect(250, 110, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), two_rect6)
two_rect7 = pygame.Rect(300, 110, 15, 55)
pygame.draw.rect(screen, (255, 255, 255), two_rect7)
two_rect8 = pygame.Rect(250, 150, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), two_rect8)
two_rect9 = pygame.Rect(250, 170, 15, 45)
pygame.draw.rect(screen, (255, 255, 255), two_rect9)
two_rect10 = pygame.Rect(270, 200, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), two_rect10)
#Five
five_rect1 = pygame.Rect(370, 110, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), five_rect1)
five_rect2 = pygame.Rect(350, 110, 15, 55)
pygame.draw.rect(screen, (255, 255, 255), five_rect2)
five_rect3 = pygame.Rect(370, 150, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), five_rect3)
five_rect4 = pygame.Rect(400, 170, 15, 45)
pygame.draw.rect(screen, (255, 255, 255), five_rect4)
five_rect5 = pygame.Rect(350, 200, 45, 15)
pygame.draw.rect(screen, (255, 255, 255), five_rect5)
m_walls = [two_rect1,two_rect2,two_rect3,two_rect4,two_rect5,two_rect6,two_rect7,two_rect8,two_rect9,two_rect10,zero_rect1, zero_rect4, zero_rect2, zero_rect3, five_rect1, five_rect2, five_rect3, five_rect4, five_rect5]
return m_walls