-
Notifications
You must be signed in to change notification settings - Fork 0
/
final_wordgame.py
729 lines (624 loc) · 25.2 KB
/
final_wordgame.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
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
import pyglet
from pyglet.window import key
from pyglet.window import Window
from pyglet.gl import gl
import time
word_list = [] #Letters are added here to see if they form a word
correct = 0 #Number of correct words
grade = "Unknown" #Initial declaration of the grade (A, B, C)
answer = "nothing" #Initial declaration of the answer - answer is the correct word they type
#Sets all the words as true initally and when they are correctly typed in the game, it sets these as false so that the user can't retype these words to get already received points
correct_catholic = True
correct_church = True
correct_priest = True
correct_swansea = True
correct_candle = True
correct_stdavids = True
correct_bishop = True
correct_canon = True
correct_baptism = True
correct_hymns = True
correct_parish = True
correct_organ = True
correct_pope = True
correct_diocese = True
#Background color
background_color = (0.6, 0.4, 0.2, 1)
gl.glClearColor(*background_color)
window = pyglet.window.Window(500,500)
#All code for the text that shows up in the introduction screen
test = pyglet.text.Label('World Religions Test',
font_name='Times New Roman',
font_size=34,
x=window.width//2, y=window.height*7/8,
anchor_x='center', anchor_y='center')
#String variables in order to make the pyglet text code more efficient
word_instructions1 = "Your test is a word search. There are 14 words to find."
word_instructions2 = "Type the word you find and press 'enter'."
word_instructions3 = "Make sure to type the word correctly to get points."
word_instructions4 = "If you mistype a word, start from the beginning letter."
word_instructions5 = "If you are done finding words, type 'done' and then 'enter'."
word_instructions6 = "Press any key to begin"
#Variables above are just put into these blocks and the parameters are set to fit well with each other
word_instructions_text1 = pyglet.text.Label(word_instructions1,
font_name='Times New Roman',
font_size=12,
x=window.width//2, y=window.height//2+40,
anchor_x='center', anchor_y='center')
word_instructions_text2 = pyglet.text.Label(word_instructions2,
font_name='Times New Roman',
font_size=12,
x=window.width//2, y=window.height//2+20,
anchor_x='center', anchor_y='center')
word_instructions_text3 = pyglet.text.Label(word_instructions3,
font_name='Times New Roman',
font_size=12,
x=window.width//2, y=window.height//2,
anchor_x='center', anchor_y='center')
word_instructions_text4 = pyglet.text.Label(word_instructions4,
font_name='Times New Roman',
font_size=12,
x=window.width//2, y=window.height//2-20,
anchor_x='center', anchor_y='center')
word_instructions_text5 = pyglet.text.Label(word_instructions5,
font_name='Times New Roman',
font_size=12,
x=window.width//2, y=window.height//2-40,
anchor_x='center', anchor_y='center')
word_instructions_text6 = pyglet.text.Label(word_instructions6,
font_name='Times New Roman',
font_size=12,
x=window.width//2, y=window.height//4,
anchor_x='center', anchor_y='center')
#Text for final screen
final = ("Click back into the game window in order to keep playing.")
final_text = pyglet.text.Label(final,
font_name='Times New Roman',
font_size=15,
x=window.width//2, y=window.height//6,
anchor_x='center', anchor_y='center')
#Loads image and scales it to fit better in the window
word_search = pyglet.image.load('wordsearch.png')
word = pyglet.sprite.Sprite(word_search, x=window.width//5.5-10, y=window.height//5)
word.scale=0.8
#-------------------------------------------------------------------------
#Main Code - everything is used and applied here under the built in on_key_press function
@window.event
def on_key_press(symbol, modifiers):
global correct, correct_catholic, correct_church, correct_priest, correct_swansea, correct_candle, correct_stdavids, correct_bishop, correct_canon, correct_baptism, correct_hymns, correct_parish, correct_organ, correct_pope, correct_diocese
letter_pressed = str(pyglet.window.key.symbol_string(symbol)) #Code for receiving the string value of the letter pressed
word_list.append(letter_pressed) #Takes the letter pressed and adds to list so that it can be checked later on
#Text for showing only the letter that the user pressed
letter = pyglet.text.Label(letter_pressed,
font_name='Times New Roman',
font_size=36,
x=window.width//2, y=window.height//9,
anchor_x='center', anchor_y='center')
#Score (number of words the user got) at the top left of the screen.
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
#Draws the contents in the window
@window.event
def on_draw():
window.clear()
test.draw() #"World Religions Test"
word.draw() #Image for word search board
letter.draw() #Letter that user types
score.draw() #Score
gl.glClearColor(*background_color) #Background color for window
#-------------------------------------------------------------------------
#Used for checking before and after the letters in the list to see if they come together to spell one of the words
for x in range(len(word_list)):
#Checks to see if the letters are in order of the correct word
if (correct_catholic == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "C"):
if (word_list[x+1] == "A"):
if (word_list[x+2] == "T"):
if (word_list[x+3] == "H"):
if (word_list[x+4] == "O"):
if (word_list[x+5] == "L"):
if (word_list[x+6] == "I"):
if (word_list[x+7] == "C"):
print("You got 'catholic'!")
correct += 1 #adds to the score in this mini game
answer = "catholic"
correct_catholic = False #Set to false so that user can't get it twice
#Text that prints the correct word that the user got
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
#Text that updates the score
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
#Draws all of the updates made on the board
@window.event
def on_draw():
window.clear() #Clear statement
test.draw() #"World Religions Test"
word.draw() #Word Search Image
correct_answer.draw() #Shows correct statement
score.draw() #Updated Score
gl.glClearColor(*background_color) #Keeps the background color the same
#--------------------------------------------------------------------------
#Everything is the same as shown above - only the words and printed statements are different to revolve around the letters and words typed
if (correct_church == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "C"):
if (word_list[x+1] == "H"):
if (word_list[x+2] == "U"):
if (word_list[x+3] == "R"):
if (word_list[x+4] == "C"):
if (word_list[x+5] == "H"):
print("You got 'church'!")
correct += 1
answer = "church"
correct_church = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_priest == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "P"):
if (word_list[x+1] == "R"):
if (word_list[x+2] == "I"):
if (word_list[x+3] == "E"):
if (word_list[x+4] == "S"):
if (word_list[x+5] == "T"):
print("You got 'priest'!")
correct += 1
answer = "priest"
correct_priest = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_swansea == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "S"):
if (word_list[x+1] == "W"):
if (word_list[x+2] == "A"):
if (word_list[x+3] == "N"):
if (word_list[x+4] == "S"):
if (word_list[x+5] == "E"):
if (word_list[x+6] == "A"):
print("You got 'swansea'!")
correct += 1
answer = "swansea"
correct_swansea = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_candle == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "C"):
if (word_list[x+1] == "A"):
if (word_list[x+2] == "N"):
if (word_list[x+3] == "D"):
if (word_list[x+4] == "L"):
if (word_list[x+5] == "E"):
print("You got 'candle'!")
correct += 1
answer = "candle"
correct_candle = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_stdavids == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "S"):
if (word_list[x+1] == "T"):
if (word_list[x+2] == "D"):
if (word_list[x+3] == "A"):
if (word_list[x+4] == "V"):
if (word_list[x+5] == "I"):
if (word_list[x+6] == "D"):
if (word_list[x+7] == "S"):
print("You got 'St Davids'!")
correct += 1
answer = "st davids"
correct_stdavids = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_bishop == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "B"):
if (word_list[x+1] == "I"):
if (word_list[x+2] == "S"):
if (word_list[x+3] == "H"):
if (word_list[x+4] == "O"):
if (word_list[x+5] == "P"):
print("You got 'bishop'!")
correct += 1
answer = "bishop"
correct_bishop = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_canon == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "C"):
if (word_list[x+1] == "A"):
if (word_list[x+2] == "N"):
if (word_list[x+3] == "O"):
if (word_list[x+4] == "N"):
print("You got 'canon'!")
correct += 1
answer = "canon"
correct_canon = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_baptism == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "B"):
if (word_list[x+1] == "A"):
if (word_list[x+2] == "P"):
if (word_list[x+3] == "T"):
if (word_list[x+4] == "I"):
if (word_list[x+5] == "S"):
if (word_list[x+6] == "M"):
print("You got 'baptism'!")
correct += 1
answer = "baptism"
correct_baptism = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_organ == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "O"):
if (word_list[x+1] == "R"):
if (word_list[x+2] == "G"):
if (word_list[x+3] == "A"):
if (word_list[x+4] == "N"):
print("You got 'organ'!")
correct += 1
answer = "organ"
correct_organ = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_hymns == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "H"):
if (word_list[x+1] == "Y"):
if (word_list[x+2] == "M"):
if (word_list[x+3] == "N"):
if (word_list[x+4] == "S"):
print("You got 'hymns'!")
correct += 1
answer = "hymns"
correct_hymns = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_parish == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "P"):
if (word_list[x+1] == "A"):
if (word_list[x+2] == "R"):
if (word_list[x+3] == "I"):
if (word_list[x+4] == "S"):
if (word_list[x+5] == "H"):
print("You got 'parish'!")
correct += 1
answer = "parish"
correct_parish = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_pope == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "P"):
if (word_list[x+1] == "O"):
if (word_list[x+2] == "P"):
if (word_list[x+3] == "E"):
print("You got 'pope'!")
correct += 1
answer = "pope"
correct_pope = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
if (correct_diocese == True):
if (letter_pressed == "ENTER"):
if (word_list[x] == "D"):
if (word_list[x+1] == "I"):
if (word_list[x+2] == "O"):
if (word_list[x+3] == "C"):
if (word_list[x+4] == "E"):
if (word_list[x+5] == "S"):
if (word_list[x+6] == "E"):
print("You got 'diocese'!")
correct += 1
answer = "diocese"
correct_diocese = False
correct_answer = pyglet.text.Label ("You got '" + answer + "'!",
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//9),
anchor_x = 'center', anchor_y = 'center')
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
@window.event
def on_draw():
window.clear()
test.draw()
word.draw()
correct_answer.draw()
score.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
#Code that is similar as the code above but is for when the user is done
if (letter_pressed == "ENTER"):
if (word_list[x] == "D"):
if (word_list[x+1] == "O"):
if (word_list[x+2] == "N"):
if (word_list[x+3] == "E"):
#Sets the string variable "grade" depending on what the user's score is
if (correct >= 13):
grade = "A+"
elif (correct >= 11):
grade = "A"
elif (correct >= 9):
grade = "A-"
elif (correct >= 7):
grade = "B+"
elif (correct >= 5):
grade = "B"
elif (correct >= 3):
grade = "B-"
else:
grade = "F"
#Text block for the grade the user got
grade_received = pyglet.text.Label ('Your grade: ' + grade,
font_name = 'Times New Roman',
font_size = 36,
x = (window.width//2), y = (window.height//2),
anchor_x = 'center', anchor_y = 'center')
#Draws the final screen with their grade
@window.event
def on_draw():
window.clear()
test.draw()
grade_received.draw()
final_text.draw()
gl.glClearColor(*background_color)
#--------------------------------------------------------------------------
#Another final screen drawing, but only for if they get all the words
if (correct == 14):
@window.event
def on_draw():
window.clear()
test.draw()
grade_received.draw()
final_text.draw()
gl.glClearColor(*background_color)
#-----------------------------------------------------------------------
#Display
#Updated score text
score = pyglet.text.Label ('Words: ' + str(correct),
font_name = 'Times New Roman',
font_size = 14,
x = (window.width//10), y = window.height*(17/18),
anchor_x = 'center', anchor_y = 'center')
#Sets the background color
background_color = (0.6, 0.4, 0.2, 1)
gl.glClearColor(*background_color)
#Draws the initial screen
@window.event
def on_draw():
window.clear()
gl.glClearColor(*background_color)
test.draw()
word_instructions_text1.draw()
word_instructions_text2.draw()
word_instructions_text3.draw()
word_instructions_text4.draw()
word_instructions_text5.draw()
word_instructions_text6.draw()
pyglet.app.run()