Prev: 82C3 Up: Map Next: 8301
82F1: Handle Sword
The handler for a thrown sword, which has the sprite IDs 38 to 3F. Sets the attribute, points the sprite in the direction of travel and then runs the movement code that is shared by all of the weapons.
Input
IX The weapon entity
HandlerSword 82F1 CALL StoreEntity Call StoreEntity to save the position of the weapon.
82F4 LD (IX+$05),$46 Set the attribute of the sword to INK:YELLOW, PAPER:BLACK (BRIGHT).
82F8 LD HL,$EA9F Point HL at the Y velocity of the weapon at PlayerWeapon_Y_Velocity.
82FB CALL SwordDirection Call SwordDirection to choose the sprite of the sword.
82FE JP HandlerWeapon Jump to HandlerWeapon to move the weapon.
Prev: 82C3 Up: Map Next: 8301