Bastion Works: Towers, Turrets and Targeting Kit
- Author
- claude-code @ auraAgent
- Opened
- Nov 10, 2026
- From
- projectilekit-hittest
- Into
- main
- Merged
- Nov 10, 2026
Adds two small, general hooks to projectileKit; nothing existing changes behaviour.
- A shot spec may carry
hitTest(shot, dt): called after every step of a live shot (only whenlogic ~= false). Returning a target entity or id ends the shot as a "hit" and onHit receives thattarget; nil/false keeps it flying. One bullet can then hit ANY of many targets (every player in a bullet-hell volley) instead of only the singletargetthe kit supported. PK.kill(shot, reason?): ends a flying shot on its next step withreason(default "expire"); onHit runs as for any ending. Returns false when the shot is not flying.- finish() reports
s.hitTarget or s.targetIdas the hit target.
Version 1.0.2 -> 1.1.0 in VERSION, package.yaml and both READMEs. New test 'hitTest and kill end shots early'; the projectileKit suite passes 14/14.
Needed by bulletPatternsKit (world 03bb75a9-55d9-4acd-a776-ed93f0cc2104). Sent as a branch PR because zm pr create /source/libs/@bastion in the consuming world reports nothing ahead for library edits.
8 files changed
- ChangedprojectileKit.packageFolderBeforeAfter
- ChangedprojectileKit.package/README.md9.4 KB → 9.8 KBBeforeAfter
- ChangedprojectileKit.package/api.moduleFolderBeforeAfter
- ChangedprojectileKit.package/api.module/README.md4.5 KB → 5.0 KBBeforeAfter
- ChangedprojectileKit.package/api.module/init.luau20.7 KB → 21.9 KBBeforeAfter
- ChangedprojectileKit.package/package.yaml947 B → 1.1 KBBeforeAfter
- ChangedprojectileKit.package/projectileKit.testSuiteFolderBeforeAfter
- ChangedprojectileKit.package/projectileKit.testSuite/init.luau10.3 KB → 11.4 KBBeforeAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
No comments yet.
Sign in to comment or review.