|
3 | 3 | """On different devices app size is also different, |
4 | 4 | so i located triggers on mine and devided it by window size on my pc, |
5 | 5 | in game this coefficients are multiplied by actual window size to get correct coordinates""" |
| 6 | +CHRISTMAS_MODE = '--xmas' in sys.argv |
6 | 7 | HALLOWEEN_MODE = '--halloween' in sys.argv |
7 | 8 | ELECTIONS_MODE = '--elections' in sys.argv |
8 | 9 | FOOTBALL_MODE = '--football' in sys.argv |
|
56 | 57 | } |
57 | 58 | ] |
58 | 59 |
|
| 60 | +# X-mas update |
| 61 | +CHRISTMAS_COLOR_TRIGGERS = [ |
| 62 | + { |
| 63 | + "red":{"min":240, "max":255}, |
| 64 | + "green":{"min":0, "max":15}, |
| 65 | + "blue":{"min":120, "max":200} |
| 66 | + }, |
| 67 | + { |
| 68 | + "red":{"min":50, "max":120}, |
| 69 | + "green":{"min":100, "max":210}, |
| 70 | + "blue":{"min":5, "max":40} |
| 71 | + }, |
| 72 | + { |
| 73 | + "red":{"min":130, "max":180}, |
| 74 | + "green":{"min":50, "max":80}, |
| 75 | + "blue":{"min":0, "max":20} |
| 76 | + }, |
| 77 | + { |
| 78 | + "red":{"min":250, "max":255}, |
| 79 | + "green":{"min":150, "max":190}, |
| 80 | + "blue":{"min":0, "max":20} |
| 81 | + }, |
| 82 | + { |
| 83 | + "red":{"min":230, "max":240}, |
| 84 | + "green":{"min":85, "max":160}, |
| 85 | + "blue":{"min":70, "max":140} |
| 86 | + } |
| 87 | +] |
| 88 | + |
59 | 89 |
|
60 | 90 | HELP_STRING = \ |
61 | 91 | """ |
62 | 92 | Usage: main.py [AMOUNT OF GAMES] [OPTIONS] |
63 | 93 |
|
64 | 94 | Options: |
65 | 95 | --help - show this string |
| 96 | + --xmas - enable christmas mode |
66 | 97 | --halloween - enable halloween mode |
67 | | - --football - enable football mode |
| 98 | + --football - enable football mode |
68 | 99 | --elections - enable elections mode |
69 | 100 | --disable-dogs - don't collect dogs |
70 | 101 | --click-limit=n - limit clicks (Example: --click-limit=0.05, only 5% of clicks) |
|
0 commit comments