-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.py
477 lines (467 loc) · 15.8 KB
/
constants.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
width = 1200
height = 850
clock_render_left = width * .015
clock_render_top = height * .01
jargon_render_left = width * .56
jargon_render_top = height * .3375
box_render_left = width * .55
time_render_left = box_render_left + (width * .185)
your_time_render_top = height * .05
goal_time_render_top = height * .285
REWARD_OPTIONS = ['Clock Faces', 'Backgrounds']
MENU_OPTIONS = ['Play', 'Challenge', 'How To Play', 'Rewards']
CLOCK_REWARDS = ['default', 'green', 'moon', 'purple',
'watermelon', 'spikeysun', 'earth', 'bluemoon']
BACKGROUND_REWARDS = ['default', 'night-cloudy', 'night-clear',
'rainbow', 'sunset', 'rain', 'galaxy', 'northern-lights']
REWARDS_DICT = {
'clock': {
'default': {
'name': 'default',
'earned': True,
'value': '0',
'color': (0, 0, 0)
},
'green': {
'name': 'green',
'earned': False,
'value': '15',
'color': (0, 0, 0)
},
'moon': {
'name': 'moon',
'earned': False,
'value': '30',
'color': (0, 0, 0)
},
'purple': {
'name': 'purple',
'earned': False,
'value': '75',
'color': (0, 0, 0)
},
'watermelon': {
'name': 'watermelon',
'earned': False,
'value': '120',
'color': (0, 0, 0)
},
'spikeysun': {
'name': 'spikeysun',
'earned': False,
'value': '175',
'color': (0, 0, 0)
},
'bluemoon': {
'name': 'bluemoon',
'earned': False,
'value': '300',
'color': (0, 0, 0)
},
'earth': {
'name': 'earth',
'earned': False,
'value': '225',
'color': (0, 0, 0)
}
},
'background': {
'default': {
'name': 'default',
'earned': True,
'value': '0',
'color': (0, 0, 0)
},
'night-cloudy': {
'name': 'night-cloudy',
'earned': False,
'value': '15',
'color': (255, 255, 255)
},
'night-clear': {
'name': 'night-clear',
'earned': False,
'value': '30',
'color': (255, 255, 255)
},
'rainbow': {
'name': 'rainbow',
'earned': False,
'value': '75',
'color': (0, 0, 0)
},
'sunset': {
'name': 'sunset',
'earned': False,
'value': '125',
'color': (0, 0, 0)
},
'rain': {
'name': 'rain',
'earned': False,
'value': '175',
'color': (0, 0, 0)
},
'northern-lights': {
'name': 'northern-lights',
'earned': False,
'value': '300',
'color': (255, 255, 255)
},
'galaxy': {
'name': 'galaxy',
'earned': False,
'value': '225',
'color': (255, 255, 255)
}
},
'score': '0',
'number_clocks': 0,
'number_backgrounds': 0
}
HANDS = {
'minute': {
0: {
'image': None,
'render_left': clock_render_left + (width * .23),
'render_top': clock_render_top + (height * .13)
},
5: {
'image': None,
'render_left': clock_render_left + (width * .23),
'render_top': clock_render_top + (height * .145)
},
10: {
'image': None,
'render_left': clock_render_left + (width * .23),
'render_top': clock_render_top + (height * .215)
},
15: {
'image': None,
'render_left': clock_render_left + (width * .24),
'render_top': clock_render_top + (height * .31)
},
20: {
'image': None,
'render_left': clock_render_left + (width * .2425),
'render_top': clock_render_top + (height * .31)
},
25: {
'image': None,
'render_left': clock_render_left + (width * .225),
'render_top': clock_render_top + (height * .305)
},
30: {
'image': None,
'render_left': clock_render_left + (width * .23),
'render_top': clock_render_top + (height * .33)
},
35: {
'image': None,
'render_left': clock_render_left + (width * .162),
'render_top': clock_render_top + (height * .32)
},
40: {
'image': None,
'render_left': clock_render_left + (width * .12),
'render_top': clock_render_top + (height * .3)
},
45: {
'image': None,
'render_left': clock_render_left + (width * .105),
'render_top': clock_render_top + (height * .313)
},
50: {
'image': None,
'render_left': clock_render_left + (width * .12),
'render_top': clock_render_top + (height * .213)
},
55: {
'image': None,
'render_left': clock_render_left + (width * .16),
'render_top': clock_render_top + (height * .15)
}
},
'hour': {
0: {
'image': None,
'render_left': clock_render_left + (width * .2325),
'render_top': clock_render_top + (height * .19)
},
1: {
'image': None,
'render_left': clock_render_left + (width * .24),
'render_top': clock_render_top + (height * .2)
},
2: {
'image': None,
'render_left': clock_render_left + (width * .245),
'render_top': clock_render_top + (height * .25)
},
3: {
'image': None,
'render_left': clock_render_left + (width * .26),
'render_top': clock_render_top + (height * .3135)
},
4: {
'image': None,
'render_left': clock_render_left + (width * .245),
'render_top': clock_render_top + (height * .325)
},
5: {
'image': None,
'render_left': clock_render_left + (width * .235),
'render_top': clock_render_top + (height * .325)
},
6: {
'image': None,
'render_left': clock_render_left + (width * .23),
'render_top': clock_render_top + (height * .34)
},
7: {
'image': None,
'render_left': clock_render_left + (width * .185),
'render_top': clock_render_top + (height * .33)
},
8: {
'image': None,
'render_left': clock_render_left + (width * .145),
'render_top': clock_render_top + (height * .31)
},
9: {
'image': None,
'render_left': clock_render_left + (width * .145),
'render_top': clock_render_top + (height * .31)
},
10: {
'image': None,
'render_left': clock_render_left + (width * .15),
'render_top': clock_render_top + (height * .235)
},
11: {
'image': None,
'render_left': clock_render_left + (width * .18),
'render_top': clock_render_top + (height * .2)
}
}
}
NUMBERS = {
0: {
'render_left': width * .235,
'render_top': height * .06
},
1: {
'render_left': width * .325,
'render_top': height * .1
},
2: {
'render_left': width * .38,
'render_top': height * .19
},
3: {
'render_left': width * .41,
'render_top': height * .31
},
4: {
'render_left': width * .385,
'render_top': height * .44
},
5: {
'render_left': width * .325,
'render_top': height * .53
},
6: {
'render_left': width * .235,
'render_top': height * .57
},
7: {
'render_left': width * .14,
'render_top': height * .53
},
8: {
'render_left': width * .075,
'render_top': height * .44
},
9: {
'render_left': width * .05,
'render_top': height * .31
},
10: {
'render_left': width * .075,
'render_top': height * .19
},
11: {
'render_left': width * .14,
'render_top': height * .1
}
}
JARGON = {
1: {
0: ['One o\' clock'],
5: ['Five past one', 'Five after one'],
10: ['Ten past one', 'Ten after one'],
15: ['Quarter past one', 'Quarter after one'],
20: ['Twenty past one', 'Twenty after one'],
25: ['Twenty-five past one', 'Twenty-five after one'],
30: ['Half past one'],
35: ['Twenty-five of two', 'Twenty-five before two'],
40: ['Twenty of two', 'Twenty before two'],
45: ['Quarter of two', 'Quarter before two'],
50: ['Ten of two', 'Ten before two'],
55: ['Five of two', 'Five before two']
},
2: {
0: ['Two o\' clock'],
5: ['Five past two', 'Five after two'],
10: ['Ten past two', 'Ten after two'],
15: ['Quarter past two', 'Quarter after two'],
20: ['Twenty past two', 'Twenty after two'],
25: ['Twenty-five past two', 'Twenty-five after two'],
30: ['Half past two'],
35: ['Twenty-five of three', 'Twenty-five before three'],
40: ['Twenty of three', 'Twenty before three'],
45: ['Quarter of three', 'Quarter before three'],
50: ['Ten of three', 'Ten before three'],
55: ['Five of three', 'Five before three']
},
3: {
0: ['Three o\' clock'],
5: ['Five past three', 'Five after three'],
10: ['Ten past three', 'Ten after three'],
15: ['Quarter past three', 'Quarter after three'],
20: ['Twenty past three', 'Twenty after three'],
25: ['Twenty-five past three', 'Twenty-five after three'],
30: ['Half past three'],
35: ['Twenty-five of four', 'Twenty-five before four'],
40: ['Twenty of four', 'Twenty before four'],
45: ['Quarter of four', 'Quarter before four'],
50: ['Ten of four', 'Ten before four'],
55: ['Five of four', 'Five before four']
},
4: {
0: ['Four o\' clock'],
5: ['Five past four', 'Five after four'],
10: ['Ten past four', 'Ten after four'],
15: ['Quarter past four', 'Quarter after four'],
20: ['Twenty past four', 'Twenty after four'],
25: ['Twenty-five past four', 'Twenty-five after four'],
30: ['Half past four'],
35: ['Twenty-five of five', 'Twenty-five before five'],
40: ['Twenty of five', 'Twenty before five'],
45: ['Quarter of five', 'Quarter before five'],
50: ['Ten of five', 'Ten before five'],
55: ['Five of five', 'Five before five']
},
5: {
0: ['Five o\' clock'],
5: ['Five past five', 'Five after five'],
10: ['Ten past five', 'Ten after five'],
15: ['Quarter past five', 'Quarter after five'],
20: ['Twenty past five', 'Twenty after five'],
25: ['Twenty-five past five', 'Twenty-five after five'],
30: ['Half past five'],
35: ['Twenty-five of six', 'Twenty-five before six'],
40: ['Twenty of six', 'Twenty before six'],
45: ['Quarter of six', 'Quarter before six'],
50: ['Ten of six', 'Ten before six'],
55: ['Five of six', 'Five before six']
},
6: {
0: ['Six o\' clock'],
5: ['Five past six', 'Five after six'],
10: ['Ten past six', 'Ten after six'],
15: ['Quarter past six', 'Quarter after six'],
20: ['Twenty past six', 'Twenty after six'],
25: ['Twenty-five past six', 'Twenty-five after six'],
30: ['Half past six'],
35: ['Twenty-five of seven', 'Twenty-five before seven'],
40: ['Twenty of seven', 'Twenty before seven'],
45: ['Quarter of seven', 'Quarter before seven'],
50: ['Ten of seven', 'Ten before seven'],
55: ['Five of seven', 'Five before seven']
},
7: {
0: ['Seven o\' clock'],
5: ['Five past seven', 'Five after seven'],
10: ['Ten past seven', 'Ten after seven'],
15: ['Quarter past seven', 'Quarter after seven'],
20: ['Twenty past seven', 'Twenty after seven'],
25: ['Twenty-five past seven', 'Twenty-five after seven'],
30: ['Half past seven'],
35: ['Twenty-five of eight', 'Twenty-five before eight'],
40: ['Twenty of eight', 'Twenty before eight'],
45: ['Quarter of eight', 'Quarter before eight'],
50: ['Ten of eight', 'Ten before eight'],
55: ['Five of eight', 'Five before eight']
},
8: {
0: ['Eight o\' clock'],
5: ['Five past eight', 'Five after eight'],
10: ['Ten past eight', 'Ten after eight'],
15: ['Quarter past eight', 'Quarter after eight'],
20: ['Twenty past eight', 'Twenty after eight'],
25: ['Twenty-five past eight', 'Twenty-five after eight'],
30: ['Half past eight'],
35: ['Twenty-five of nine', 'Twenty-five before nine'],
40: ['Twenty of nine', 'Twenty before nine'],
45: ['Quarter of nine', 'Quarter before nine'],
50: ['Ten of nine', 'Ten before nine'],
55: ['Five of nine', 'Five before nine']
},
9: {
0: ['Nine o\' clock'],
5: ['Five past nine', 'Five after nine'],
10: ['Ten past nine', 'Ten after nine'],
15: ['Quarter past nine', 'Quarter after nine'],
20: ['Twenty past nine', 'Twenty after nine'],
25: ['Twenty-five past nine', 'Twenty-five after nine'],
30: ['Half past nine'],
35: ['Twenty-five of ten', 'Twenty-five before ten'],
40: ['Twenty of ten', 'Twenty before ten'],
45: ['Quarter of ten', 'Quarter before ten'],
50: ['Ten of ten', 'Ten before ten'],
55: ['Five of ten', 'Five before ten']
},
10: {
0: ['Ten o\' clock'],
5: ['Five past ten', 'Five after ten'],
10: ['Ten past ten', 'Ten after ten'],
15: ['Quarter ten', 'Quarter after ten'],
20: ['Twenty past ten', 'Twenty after ten'],
25: ['Twenty-five past ten', 'Twenty-five after ten'],
30: ['Half past ten'],
35: ['Twenty-five of eleven', 'Twenty-five before eleven'],
40: ['Twenty of eleven', 'Twenty before eleven'],
45: ['Quarter of eleven', 'Quarter before eleven'],
50: ['Ten of eleven', 'Ten before eleven'],
55: ['Five of eleven', 'Five before eleven']
},
11: {
0: ['Eleven o\' clock'],
5: ['Five past eleven', 'Five after eleven'],
10: ['Ten past eleven', 'Ten after eleven'],
15: ['Quarter eleven', 'Quarter after eleven'],
20: ['Twenty past eleven', 'Twenty after eleven'],
25: ['Twenty-five past eleven', 'Twenty-five after eleven'],
30: ['Half past eleven'],
35: ['Twenty-five of twelve', 'Twenty-five before twelve'],
40: ['Twenty of twelve', 'Twenty before twelve'],
45: ['Quarter of twelve', 'Quarter before twelve'],
50: ['Ten of twelve', 'Ten before twelve'],
55: ['Five of twelve', 'Five before twelve']
},
12: {
0: ['Twelve o\' clock', 'Noon', 'Midnight'],
5: ['Five past twelve', 'Five after twelve'],
10: ['Ten past twelve', 'Ten after twelve'],
15: ['Quarter past twelve', 'Quarter after twelve'],
20: ['Twenty past twelve', 'Twenty after twelve'],
25: ['Twenty-five past twelve', 'Twenty-five after twelve'],
30: ['Half past twelve'],
35: ['Twenty-five of one', 'Twenty-five before one'],
40: ['Twenty of one', 'Twenty before one'],
45: ['Quarter of one', 'Quarter before one'],
50: ['Ten of one', 'Ten before one'],
55: ['Five of one', 'Five before one']
}
}