Dentosal / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
586 stars 182 forks source link

Is it possible to visualize the distance in sc2? #296

Closed baibinghere closed 5 years ago

baibinghere commented 5 years ago

I'm writing code to micro control marines to fight, but it's hard for me to grap the concept of distance inside sc2. Is there any tools or functions to help me visualize the distance? If this topic is not valid for the project, please close it. thanks.

UltraMachine commented 5 years ago

use methods from client.py

async def on_step(self):
    self._client.debug_line_out(position1, position2, color)
    await self._client.send_debug()
baibinghere commented 5 years ago

@UltraMachine cool, it works! Great help! thanks!