-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
65 lines (55 loc) · 2.21 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
WINDOW_WIDTH = 640
WINDOW_HEIGHT = 360
WINDOW_SIZE = WINDOW_WIDTH, WINDOW_HEIGHT
WINDOW_SCALE = 2
SCALED_WINDOW_SIZE = WINDOW_WIDTH*WINDOW_SCALE, WINDOW_HEIGHT*WINDOW_SCALE
FRAMERATE = 100
CAPTION = "My Keyboard is Full of Ants!"
QWERTY_LAYOUT = "QWERTYUIOP", "ASDFGHJKL", "ZXCVBNM"
ALL_LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
RARE_LETTERS = "QZXJ"
UNCOMMON_LETTERS = "KVBPGWY"
COMMON_LETTERS = "".join(letter for letter in ALL_LETTERS if letter not in RARE_LETTERS + UNCOMMON_LETTERS)
RIGHT = 0
UP_RIGHT = 1
UP_LEFT = 2
LEFT = 3
DOWN_LEFT = 4
DOWN_RIGHT = 5
PLAYER_TURN = 0
DAMAGE = 1
ANT_TURN = 2
UPGRADES = [
("Sphinx", "Rare letter multiplier is increased to 400%."),
("Sphinx 2", "Rare letter multiplier is increased to 600%."),
("Vocab", "Words can be up to 7 letters."),
("Vocab 2", "Words can be up to 10 letters"),
("K-Bomb", "The K key explodes when you press it."),
("S-Bomb", "The S key explodes when you press it."),
("H-Bomb", "No, not that kind. The H key goes boom when pressed."),
("F-Bomb", "I'm sure you saw this joke coming."),
("Speedy", "Max speed multiplier is increased to 250%."),
("Speedy 2", "Max speed multiplier is increased to 300%."),
# ("Double Tap", "Hitting an ant you just killed gives bonus points."),
# ("Double Tap 2", "Double tap bonus increased to 200."),
("Coffee", "Drink a delicious cup of coffee."),
# ("Big Word Bad", "Word with four or less go boom."),
("Spree", "Get bonus points for killing 3 or more ants in a turn."),
("Spree 2", "Spree bonus points are doubled."),
]
DEPENDENCIES = {
"Vocab 2": ("Vocab",),
"F-Bomb": ("H-Bomb",),
"H-Bomb": ("S-Bomb",),
"S-Bomb": ("K-Bomb",),
"Speedy 2": ("Speedy",),
"Double Tap 2": ("Double Tap",),
"Coffee": ("K-Bomb", "Vocab", "Speedy", "Spree"),
"Spree 2": ("Spree",),
"Sphinx 2": ("Sphinx",),
}
LETTERS = {
1: "Dearest employer,\n\nRegarding the sales report due earlier today,\n\n",
2: "Dear unemployment office,\n\nWhat follows are the details of my unemployment claim.\n\n",
3: "Dearest Olivia,\n\nThe last few months have been difficult for both of us. But if you still love me, then please hear me out before you file the divorce paperwork.\n\n",
}