Update Sprite_Kydreeok_Draw formatting
This commit is contained in:
@@ -435,6 +435,7 @@ StopIfOutOfBounds:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; =========================================================
|
||||||
|
|
||||||
Sprite_ApplySpeedTowardsPlayerXOrY:
|
Sprite_ApplySpeedTowardsPlayerXOrY:
|
||||||
{
|
{
|
||||||
@@ -529,6 +530,8 @@ Sprite_ApplySpeedTowardsPlayerXOrY:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; =========================================================
|
||||||
|
|
||||||
ApplyPalette:
|
ApplyPalette:
|
||||||
{
|
{
|
||||||
REP #$20 ;Set A in 16bit mode
|
REP #$20 ;Set A in 16bit mode
|
||||||
@@ -554,20 +557,20 @@ ApplyPalette:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
; =============================================================================
|
; =========================================================
|
||||||
|
|
||||||
Sprite_Kydreeok_Draw:
|
Sprite_Kydreeok_Draw:
|
||||||
|
{
|
||||||
JSL Sprite_PrepOamCoord
|
JSL Sprite_PrepOamCoord
|
||||||
JSL Sprite_OAM_AllocateDeferToPlayer
|
JSL Sprite_OAM_AllocateDeferToPlayer
|
||||||
|
|
||||||
LDA $0DC0, X : CLC : ADC $0D90, X : TAY;Animation Frame
|
LDA $0DC0, X : CLC : ADC $0D90, X : TAY;Animation Frame
|
||||||
LDA .start_index, Y : STA $06
|
LDA .start_index, Y : STA $06
|
||||||
|
|
||||||
|
|
||||||
PHX
|
PHX
|
||||||
LDX .nbr_of_tiles, Y ;amount of tiles -1
|
LDX .nbr_of_tiles, Y ;amount of tiles -1
|
||||||
LDY.b #$00
|
LDY.b #$00
|
||||||
.nextTile
|
.next_tile
|
||||||
|
|
||||||
PHX ; Save current Tile Index?
|
PHX ; Save current Tile Index?
|
||||||
|
|
||||||
@@ -605,7 +608,7 @@ Sprite_Kydreeok_Draw:
|
|||||||
|
|
||||||
PLY : INY
|
PLY : INY
|
||||||
|
|
||||||
PLX : DEX : BPL .nextTile
|
PLX : DEX : BPL .next_tile
|
||||||
|
|
||||||
PLX
|
PLX
|
||||||
|
|
||||||
@@ -636,3 +639,4 @@ Sprite_Kydreeok_Draw:
|
|||||||
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
|
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
|
||||||
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
|
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
|
||||||
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
|
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user