Implement virtual bullet system #110
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Question
Build the virtual bullet tracking system. Every tick, all 64 population candidates produce an aim angle (GF × MEA) and a power. Spawn a virtual bullet per candidate per tick. Track each bullet's position each tick (linear trajectory at speed = 20 - 3 × power). Detect hit by checking intersection with enemy's actual bounding box. Detect miss when bullet leaves battlefield. Record hit/miss per candidate.
Related map
#108
Blocked by #109
New module libs/vbullets.nim. 64 candidates, spawnBullet/stepBullets/hitRate API. Circle-rect hit detection. Assert-based self-check for geometry.