forked from tanjeffreyz/auto-maple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
45 lines (32 loc) · 1.15 KB
/
config.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
"""A collection of variables shared across multiple modules."""
#################################
# CONSTANTS #
#################################
# Describes the dimensions of the screen to capture with mss
MONITOR = {'top': 0, 'left': 0, 'width': 1366, 'height': 768}
#################################
# Global Variables #
#################################
# The player's position relative to the minimap
player_pos = (0, 0)
# Describes whether the main bot loop is currently running or not
enabled = False
# If there is another player in the map, Auto Maple will purposely make random human-like mistakes
stage_fright = False
# Represents the current shortest path that the bot is taking
path = []
#############################
# Shared Modules #
#############################
# A Routine object that manages the 'machine code' of the current routine
routine = None
# Stores the Layout object associated with the current routine
layout = None
# Shares the main bot loop
bot = None
# Shares the video capture loop
capture = None
# Shares the keyboard listener
listener = None
# Shares the gui to all modules
gui = None