Skip to content

Commit 729a669

Browse files
committed
docs (pt2): update collision to hardware.inc v5.3.0
1 parent ff5b1b1 commit 729a669

File tree

3 files changed

+1182
-1093
lines changed

3 files changed

+1182
-1093
lines changed

src/part2/collision.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,14 @@ Hint: you can do this with just a single instruction!
229229
<details><summary>Answer:</summary>
230230

231231
```diff linenos,start={{#line_no_of "" ../../unbricked/collision/main.asm:paddle-bounce}}
232-
ld a, [_OAMRAM]
232+
ld a, [STARTOF(OAM)]
233233
ld b, a
234-
ld a, [_OAMRAM + 4]
234+
ld a, [STARTOF(OAM) + 4]
235235
+ add a, 6
236236
cp a, b
237237
```
238238

239-
Alternatively, you can add `sub a, 6` just after `ld a, [_OAMRAM]`.
239+
Alternatively, you can add `sub a, 6` just after `ld a, [STARTOF(OAM)]`.
240240

241241
In both cases, try playing with that `6` value; see what feels right!
242242

0 commit comments

Comments
 (0)