get paid to paste

Min-Max1,7_2 (Framal Block)

!Gl = $00		; $00 if it should be based on level exAnim, and $20 if it should be based on global exAnim
!Slot = $1D		; exAnimation slot the hurting should be based on

!Min = $14		; First frame the block should hurt on
!Max = $1F		; Last frame the block should hurt on

print "A framal block which hurts the player between frames 0x",hex(!Min),"-0x",hex(!Max),"."

db $42
JMP M : JMP M : JMP M : JMP R : JMP R : JMP R : JMP R
JMP M : JMP M : JMP M

M:
LDA $7FC080+!Gl+!Slot	;\
CMP #!Min		;|
BCC R			;| Check if it is a correct frame
CMP.b #!Max+$01		;|
BCS R			;/

JSL $00F5B7		; If yes, hurt the player

R:
RTL

Pasted: Jul 30, 2018, 12:02:38 pm
Views: 6