Prev: 82C3 Up: Map Next: 8301
82F1: Aim the serf's sword the way it flies
Sprites $38 to $3F are one sword drawn at eight angles, a compass point apart. This does not cycle them: SIGN_TO_DIRECTION picks the one that matches the signs of the weapon's velocity, so the sword points where it is going and turns only when it bounces. (The axe, SPIN_AXE, is the one that spins.)
This is the serf's weapon. Each character throws its own: firing as each in turn and reading the type out of the player record's upper half gives $3E for the serf, $41 to $47 for the knight's axe and $36 for the wizard's spell.
AIM_SWORD 82F1 CALL ACTOR_TO_WORKSPACE
82F4 LD (IX+$05),$46
82F8 LD HL,$EA9F
82FB CALL SIGN_TO_DIRECTION
82FE JP SPIN_WEAPON
Prev: 82C3 Up: Map Next: 8301