Documentation ¶
Overview ¶
Package macro is a collection of semi-automation functions. A macro function can be set on each tank, which is executed with every update.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttackMove ¶
AttackMove moves the tank in the aligned direction. If the tank encounters an enemy, it stops and opens fire. If the enemy is destroyed, the tank continues to move.
func FireAndManeuver ¶
FireAndManeuver moves the tank in the aligned direction. Whenever the weapon is loaded, the tank will stop and fire. While reloading, the tank keeps moving.
func FireWall ¶
FireWall fires at random positions in front of the tank. Most fun in combination with the rocket launcher.
func GuardMode ¶
GuardMode makes the tank wait and attack anything that approaches. Cannons can change their angle but cannot move.
Types ¶
This section is empty.