File tree Expand file tree Collapse file tree 3 files changed +1187
-1098
lines changed
Expand file tree Collapse file tree 3 files changed +1187
-1098
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ It should go right **before** the momentum is modified.
3232BounceOnTop:
3333 ; Remember to offset the OAM position!
3434 ; (8, 16) in OAM coordinates is (0, 0) on the screen.
35- ld a, [_OAMRAM + 4]
35+ ld a, [STARTOF(OAM) + 4]
3636 sub a, 16 + 1
3737 ld c, a
38- ld a, [_OAMRAM + 5]
38+ ld a, [STARTOF(OAM) + 5]
3939 sub a, 8
4040 ld b, a
4141 call GetTileByPixel ; Returns tile address in hl
@@ -47,10 +47,10 @@ BounceOnTop:
4747 ld [wBallMomentumY], a
4848
4949BounceOnRight:
50- ld a, [_OAMRAM + 4]
50+ ld a, [STARTOF(OAM) + 4]
5151 sub a, 16
5252 ld c, a
53- ld a, [_OAMRAM + 5]
53+ ld a, [STARTOF(OAM) + 5]
5454 sub a, 8 - 1
5555 ld b, a
5656 call GetTileByPixel
@@ -62,10 +62,10 @@ BounceOnRight:
6262 ld [wBallMomentumX], a
6363
6464BounceOnLeft:
65- ld a, [_OAMRAM + 4]
65+ ld a, [STARTOF(OAM) + 4]
6666 sub a, 16
6767 ld c, a
68- ld a, [_OAMRAM + 5]
68+ ld a, [STARTOF(OAM) + 5]
6969 sub a, 8 + 1
7070 ld b, a
7171 call GetTileByPixel
@@ -77,10 +77,10 @@ BounceOnLeft:
7777 ld [wBallMomentumX], a
7878
7979BounceOnBottom:
80- ld a, [_OAMRAM + 4]
80+ ld a, [STARTOF(OAM) + 4]
8181 sub a, 16 - 1
8282 ld c, a
83- ld a, [_OAMRAM + 5]
83+ ld a, [STARTOF(OAM) + 5]
8484 sub a, 8
8585 ld b, a
8686 call GetTileByPixel
You can’t perform that action at this time.
0 commit comments