Improve enemy AI and add charger knockback #23

Merged
tas merged 1 commits from feature/enemy-ai-improvements into main 2026-03-16 19:45:13 +00:00
Collaborator

Summary

  • Enemies that fall past the level bottom are now instantly destroyed, preventing off-screen accumulation on Mars and other levels
  • Cliff detection uses a speed-scaled lookahead (min 4px, up to speed/10) so patrol enemies reverse more reliably before walking off edges
  • Charger deals 2 damage (instead of 1) when hitting the player during a charge
  • Knockback force scales with the attacker's horizontal speed, so a charging charger sends the player flying
## Summary - Enemies that fall past the level bottom are now instantly destroyed, preventing off-screen accumulation on Mars and other levels - Cliff detection uses a speed-scaled lookahead (min 4px, up to speed/10) so patrol enemies reverse more reliably before walking off edges - Charger deals 2 damage (instead of 1) when hitting the player during a charge - Knockback force scales with the attacker's horizontal speed, so a charging charger sends the player flying
LeSerjant added 1 commit 2026-03-16 14:55:34 +00:00
Enemies that fall past the bottom of the level are now instantly destroyed,
preventing them from accumulating off-screen. Cliff detection uses a
speed-scaled lookahead so faster enemies reverse earlier. Charger deals
double damage during charge and knockback scales with the attacker's speed.
tas merged commit f65e8dd9ea into main 2026-03-16 19:45:13 +00:00
tas deleted branch feature/enemy-ai-improvements 2026-03-16 19:45:14 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tas/major_tom#23