Skip to content

Commit 1d85eda

Browse files
authored
Fix incorrect collision detection (#61)
1 parent fba14ba commit 1d85eda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/part2/collision.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ Hint: you can do this with just a single instruction!
232232
ld a, [_OAMRAM]
233233
ld b, a
234234
ld a, [_OAMRAM + 4]
235-
+ sub a, 6
235+
+ add a, 6
236236
cp a, b
237237
```
238238

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

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

0 commit comments

Comments
 (0)