-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatic.py
More file actions
112 lines (82 loc) · 2.83 KB
/
static.py
File metadata and controls
112 lines (82 loc) · 2.83 KB
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
RIGHT = 'right'
LEFT = 'left'
UP = 'up'
DOWN = 'down'
LOSE_TEXT = 'YOU ARE FIRED'
BOSS_IMAGE_PATH = 'sprites/boss.png'
BATTLE_IMAGE_PATH = 'sprites/battle.png'
BATTLE_BG_IMAGE_PATH = 'sprites/battle_bg.jpg'
CONSOLAS = 'Consolas'
enemies_names = [['AttributeError', 'NameError', 'AttributeError'], ['KeyError', 'TypeError', 'AttributeError'],
['KeyError', 'AttributeError', 'TypeError'], ['Can\'t run on battery']]
RIGHT_ANSWER = 'RIGHT ANSWER!'
scale_screen_resolution = (1918, 1074)
bg_images_paths = ['sprites/bg1.png', 'sprites/bg2.png',
'sprites/bg3.png', 'sprites/bg4.png']
hero_sprites_paths = ['sprites/idle_left.png', 'sprites/idle_right.png', 'sprites/run_left_1.png',
'sprites/run_left_2.png', 'sprites/run_left_3.png', 'sprites/run_left_4.png',
'sprites/run_left_5.png', 'sprites/run_right_1.png', 'sprites/run_right_2.png',
'sprites/run_right_3.png', 'sprites/run_right_4.png', 'sprites/run_right_5.png',
'sprites/idle_battle.png']
enemies_sprites = ['sprites/enemy0.png', 'sprites/enemy1.png', 'sprites/enemy2.png', 'sprites/enemy3.png',
'sprites/enemy4.png', 'sprites/enemy5.png']
def text_hint_1():
"""
None -> str
Returns the following string 'To beat your opponent,'
"""
return 'To beat your opponent,'
def text_hint_2():
"""
None -> str
Returns the following string 'you should determine'
"""
return 'you should determine'
def text_hint_3():
"""
None -> str
Returns the following string 'which sequence contains'
"""
return 'which sequence contains'
def text_hint_4():
"""
None -> str
Returns the following string 'questioned number, if 2 sequences'
"""
return ' questioned number, if 2 sequences'
def text_hint_5():
"""
None -> str
Returns the following string 'contain number'
"""
return 'contain number'
def text_hint_6():
"""
None -> str
Returns the following string '- both answers are correct.'
"""
return '- both answers are correct.'
def control_hint_1():
"""
None -> str
Returns the following string 'If you think that questioned number is: '
"""
return 'If you think that questioned number is: '
def control_hint_2():
"""
None -> str
Returns the following string 'Ulam number - press 1.'
"""
return 'Ulam number - press 1.'
def control_hint_3():
"""
None -> str
Returns the following string 'Ulam number - press 2.'
"""
return 'Prime number - press 2.'
def control_hint_4():
"""
None -> str
Returns the following string 'Ulam number - press 3.'
"""
return 'Happy number - press 3.'