update village dog sprite
This commit is contained in:
@@ -138,14 +138,13 @@ Sprite_VillageDog_Main:
|
||||
%GotoAction(0)
|
||||
.no_collision
|
||||
|
||||
LDA.b #$0A ; Speed
|
||||
LDA.b #$0A
|
||||
JSL Sprite_ApplySpeedTowardsPlayer
|
||||
STZ $06 : STZ $07
|
||||
JSL Sprite_MoveLong
|
||||
JSL Sprite_CheckIfLifted
|
||||
|
||||
LDA.w SprTimerD, X : BNE +
|
||||
|
||||
%GotoAction(0)
|
||||
+
|
||||
RTS
|
||||
@@ -166,7 +165,7 @@ Sprite_VillageDog_Main:
|
||||
%GotoAction(0)
|
||||
.no_collision
|
||||
|
||||
LDA.b #$0A ; Speed
|
||||
LDA.b #$0A
|
||||
JSL Sprite_ApplySpeedTowardsPlayer
|
||||
STZ $06 : STZ $07
|
||||
JSL Sprite_MoveLong
|
||||
@@ -209,24 +208,19 @@ Sprite_VillageDog_Main:
|
||||
CheckIfPlayerIsNearby:
|
||||
{
|
||||
REP #$20
|
||||
LDA $22 : CLC : ADC #$0012 : CMP $0FD8 : BCC .left
|
||||
LDA $22 : SEC : SBC #$0012 : CMP $0FD8 : BCS .right
|
||||
LDA $22 : CLC : ADC #$0012 : CMP $0FD8 : BCC .out
|
||||
LDA $22 : SEC : SBC #$0012 : CMP $0FD8 : BCS .out
|
||||
LDA $20 : CLC : ADC #$001A : CMP $0FDA : BCC .out
|
||||
LDA $20 : SEC : SBC #$001A : CMP $0FDA : BCS .out
|
||||
SEP #$21
|
||||
RTS ; Return with carry set
|
||||
|
||||
LDA $20 : CLC : ADC #$001A : CMP $0FDA : BCC .up
|
||||
LDA $20 : SEC : SBC #$001A : CMP $0FDA : BCS .down
|
||||
|
||||
SEP #$21 : RTS ; Return with carry set
|
||||
|
||||
.left
|
||||
.right
|
||||
.up
|
||||
.down
|
||||
.out
|
||||
SEP #$20
|
||||
CLC : RTS ; Return with carry cleared
|
||||
CLC
|
||||
RTS ; Return with carry cleared
|
||||
}
|
||||
|
||||
|
||||
|
||||
ShowMessageIfMinish:
|
||||
{
|
||||
LDA $02B2 : CMP.b #$05 : BNE .not_minish
|
||||
|
||||
Reference in New Issue
Block a user