-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconstants.py
executable file
·67 lines (53 loc) · 1.66 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
import sys
"""On different devices app size is also different,
so i located triggers on mine and devided it by window size on my pc,
in game this coefficients are multiplied by actual window size to get correct coordinates"""
VALENTINES_MODE = '--valentines' in sys.argv
DOGS_DROP_TOGGLE = '--enable-dogs' in sys.argv
CLICK_LIMIT = 1.0
for arg in sys.argv:
if '--click-limit' in arg:
CLICK_LIMIT = float(arg.split('=')[1])
DEV_SCREEN_SIZE_CONST = (402, 712)
APPLICATION_NAME = 'Blum'
DEFAULT_COLOR_TRIGGER = {
"red":{"min":90, "max":255},
"green":{"min":220, "max":255},
"blue":{"min":5, "max":55}}
APPLICATION_TRIGGER = {"color":(234, 212, 12), "positions":[(60/402, 112/712), (43/402, 110/712),
(102/402, 113/712), (61/402, 106/712)]}
PIXELS_PER_ITERATION = 10
NEW_GAME_TRIGGER_POS = (210/402, 615/712)
AVG_GAME_DURATION = 30 # seconds
#Dogs drop
DOGS_WHITE_COLOR_RANGE = (238, 256)
# Valentine's day update
VALENTINES_COLOR_TRIGGERS = [
{
"red":{"min":190, "max":205},
"green":{"min":0, "max":90},
"blue":{"min":0, "max":90}
},
{
"red":{"min":250, "max":255},
"green":{"min":0, "max":80},
"blue":{"min":150, "max":205}
},
{
"red":{"min":140, "max":205},
"green":{"min":30, "max":90},
"blue":{"min":70, "max":150}
},
]
HELP_STRING = \
"""
Usage: main.py [AMOUNT OF GAMES] [OPTIONS]
Options:
--help - show this string
--valentines - enable \"valentine's day\" mode
--enable-dogs - collect dogs
--click-limit=n - limit clicks (Example: --click-limit=0.05, only 5% of clicks)
Keybidings:
1 - decrease clicks limit
2 - increase clicks limit
"""