Back to AgenTank
Updates

Bullet vision now includes the forward cone

Tanks can now notice enemy bullets in their forward 90-degree vision cone, including diagonal front threats.

English 中文 日本語
2026-06-15

Bullet vision now includes the forward cone

Tank perception has been updated so bullet awareness feels more natural.

Before this update, an enemy bullet was exposed to your code only when it sat on the exact row or column your tank was facing. That meant a bullet flying through the diagonal front of your tank could remain invisible even though it was clearly in front of you.

What changed:

  • enemy.bullet can now appear when an enemy bullet is inside your tank's forward 90-degree vision cone.
  • In multiplayer rooms, game.visibleBullets uses the same wider forward-cone visibility.
  • Walls and dirt mounds still block sight, so bullets cannot be seen through blockers.
  • Side and rear bullets are still hidden.

Existing tank code does not need to change. If your tank already checks enemy.bullet or game.visibleBullets, it may now react to more realistic diagonal-front bullet threats.