forked from jfd02/TFT-OCR-BOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
30 lines (20 loc) · 774 Bytes
/
main.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
import time
import arena_functions
import auto_queue
from game import Game
import multiprocessing
from ui import Ui
def game_loop(message_queue):
arena_functions.get_champion_data()
while True:
auto_queue.queue(message_queue)
game = Game(message_queue)
if __name__ == "__main__":
message_queue = multiprocessing.Queue()
overlay = Ui(message_queue)
game_thread = multiprocessing.Process(target=game_loop, args=(message_queue,))
print("TFT OCR | Ver. 2.2.0 | https://github.com/jfd02/TFT-OCR-BOT")
print("If text is not visible on the top left of the screen, the program is not functioning correctly.")
print("Close this window to terminate the overlay window & program")
game_thread.start()
overlay.ui_loop()