We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e984ee commit 5a4cc95Copy full SHA for 5a4cc95
src/graphx/graphx.asm
@@ -2079,14 +2079,14 @@ _Sprite_NoClip:
2079
ld (SprNcJrStep-1),a \.r
2080
ld a,lcdWidth/2
2081
sub a,c
2082
- ld iyl,a ; (lcdWidth-spriteWidth)/2
+ ld iyl,a ; (lcdWidth/2)-(spriteWidth/2)
2083
ld a,(hl) ; spriteHeight
2084
inc hl
2085
jr SprNcLpStart
2086
SprNcLpOddW:
2087
- inc de ; needed if sprite width is odd
+ dec de ; needed if sprite width is odd
2088
SprNcLpEvenW:
2089
- ld c,iyl ; (lcdWidth-spriteWidth)/2
+ ld c,iyl ; (lcdWidth/2)-(spriteWidth/2)
2090
ex de,hl
2091
add hl,bc
2092
0 commit comments