update kydreeok formatting
This commit is contained in:
@@ -189,19 +189,17 @@ Sprite_Kydreeok_Main:
|
|||||||
|
|
||||||
; Use a range of + 0x05 because being exact equal didnt trigger consistently
|
; Use a range of + 0x05 because being exact equal didnt trigger consistently
|
||||||
LDA $20 : SBC SprCachedY : CMP.w #$FFFB : BCC .notEqualY
|
LDA $20 : SBC SprCachedY : CMP.w #$FFFB : BCC .notEqualY
|
||||||
|
|
||||||
SEP #$20
|
SEP #$20
|
||||||
%GotoAction(2) ; Kydreeok_MoveXandY
|
%GotoAction(2) ; Kydreeok_MoveXandY
|
||||||
BRA .notEqualX
|
BRA .notEqualX
|
||||||
|
|
||||||
.notEqualY
|
.notEqualY
|
||||||
|
|
||||||
; Use a range of + 0x05 because being exact equal didnt trigger consistently
|
; Use a range of + 0x05 because being exact equal didnt trigger consistently
|
||||||
LDA $22 : SBC SprCachedX : CMP.w #$FFFB : BCC .notEqualX
|
LDA $22 : SBC SprCachedX : CMP.w #$FFFB : BCC .notEqualX
|
||||||
SEP #$20
|
SEP #$20
|
||||||
%GotoAction(2) ; Kydreeok_MoveXandY
|
%GotoAction(2) ; Kydreeok_MoveXandY
|
||||||
|
|
||||||
.notEqualX
|
.notEqualX
|
||||||
|
|
||||||
SEP #$20
|
SEP #$20
|
||||||
JSR StopIfOutOfBounds
|
JSR StopIfOutOfBounds
|
||||||
|
|
||||||
@@ -209,7 +207,6 @@ Sprite_Kydreeok_Main:
|
|||||||
LDA.w SprYSpeed : BNE .notZero
|
LDA.w SprYSpeed : BNE .notZero
|
||||||
LDA.w SprXSpeed : BNE .notZero
|
LDA.w SprXSpeed : BNE .notZero
|
||||||
%GotoAction(3) ; Kydreeok_MoveXorY
|
%GotoAction(3) ; Kydreeok_MoveXorY
|
||||||
|
|
||||||
.notZero
|
.notZero
|
||||||
|
|
||||||
JSR MoveBody
|
JSR MoveBody
|
||||||
@@ -323,7 +320,6 @@ SpawnCenterHead:
|
|||||||
|
|
||||||
.return
|
.return
|
||||||
RTS
|
RTS
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
; =========================================================
|
; =========================================================
|
||||||
@@ -331,13 +327,11 @@ SpawnCenterHead:
|
|||||||
SpawnRightHead:
|
SpawnRightHead:
|
||||||
{
|
{
|
||||||
LDA #$CF
|
LDA #$CF
|
||||||
|
|
||||||
JSL Sprite_SpawnDynamically : BMI .return
|
JSL Sprite_SpawnDynamically : BMI .return
|
||||||
TYA : STA Offspring2_Id
|
TYA : STA Offspring2_Id
|
||||||
|
|
||||||
;store the sub-type
|
;store the sub-type
|
||||||
LDA.b #$01 : STA $0E30, Y
|
LDA.b #$01 : STA $0E30, Y
|
||||||
|
|
||||||
PHX
|
PHX
|
||||||
; code that controls where to spawn the offspring.
|
; code that controls where to spawn the offspring.
|
||||||
REP #$20
|
REP #$20
|
||||||
@@ -360,7 +354,6 @@ SpawnRightHead:
|
|||||||
STZ.w SprYRound, X
|
STZ.w SprYRound, X
|
||||||
STZ.w SprXRound, X
|
STZ.w SprXRound, X
|
||||||
PLX
|
PLX
|
||||||
|
|
||||||
.return
|
.return
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user