Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; fix walk speed if we just came out of a run
- lda PlayerVXL
- bit PlayerVXH ; take the absolute value, negate the low byte if the high byte is positive
- bpl :+
- neg
- :
- cmp MaxSpeedRight
- beq NoFixWalkSpeed
- bcc NoFixWalkSpeed
- sub NovaDecelSpeed
- bit PlayerVXH ; reverse the negation from earlier if needed
- bpl :+
- neg
- :
- sta PlayerVXL
- NoFixWalkSpeed:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement