Skip to content

Commit

Permalink
add 1 pixel offset to y position
Browse files Browse the repository at this point in the history
add 1 pixel offset to y position
  • Loading branch information
tOaO-zer0 authored Dec 1, 2024
1 parent 6bb7880 commit 6aab83f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pixi/slope_sprite_base.asm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
; INIT CODE
;=======================================================================================================================
print "INIT ",pc
LDA !D8,x ;\
SEC ;| offset y-position by 1 pixel
SBC #$01 ;|
STA !D8,x ;|
LDA !14D4,x ;|
SBC #$00 ;|
STA !14D4,x ;/
;=======================================================================================================================
; MAIN JSL CODE
;=======================================================================================================================
Expand Down Expand Up @@ -237,4 +244,4 @@ MOVEMENT:

RETURN_MOVEMENT:
RTS
RTS

0 comments on commit 6aab83f

Please sign in to comment.