feat(movement): multi-enemy awareness — phantom meteor + minimum risk track all enemies
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,9 +7,14 @@ import std/math
|
||||
const BotRadius* = 18.0 ## hit detection radius in px
|
||||
|
||||
type
|
||||
EnemyInfo* = object
|
||||
id*: int
|
||||
x*, y*: float
|
||||
heading*, speed*, energy*: float
|
||||
|
||||
WorldState* = object
|
||||
## All raw data given to every gun every tick.
|
||||
# Enemy
|
||||
# Enemy (current TARGET)
|
||||
enemyX*, enemyY*: float
|
||||
enemySpeed*, enemyHeading*: float
|
||||
# Self
|
||||
@@ -22,6 +27,8 @@ type
|
||||
arenaWidth*, arenaHeight*: float
|
||||
# Meta
|
||||
tick*: int
|
||||
# All alive enemies (for movement modules)
|
||||
enemies*: seq[EnemyInfo]
|
||||
|
||||
GunPrediction* = object
|
||||
## Absolute (x, y) where the gun predicts the enemy will be.
|
||||
|
||||
Reference in New Issue
Block a user