AI-Project/survival/components/pathfinding_component.py

6 lines
206 B
Python
Raw Normal View History

2021-04-19 01:41:02 +02:00
class PathfindingComponent:
def __init__(self, target_pos):
self.target_grid_pos = (int(target_pos[0] / 32), int(target_pos[1] / 32))
2021-04-19 12:05:33 +02:00
self.current_target = None
2021-04-19 01:41:02 +02:00
self.path = None