Skip to content

Commit

Permalink
part2: fix discrepancy about how often the paddle is moved between te…
Browse files Browse the repository at this point in the history
…xt and code.
  • Loading branch information
fvilers authored and avivace committed Nov 29, 2023
1 parent 388b53b commit 35acd3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/part2/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Add this to the bottom of your file:
```

Now we'll use the `wFrameCounter` variable to count how many frames have passed since we last moved the paddle.
Every 10th frame, we'll move the paddle by one pixel, slowing it down to 6 pixels per second.
Every 15th frame, we'll move the paddle by one pixel, slowing it down to 4 pixels per second.
Don't forget that RAM is filled with garbage values when the Game Boy starts, so we need to initialize our variables before first using them.

```rgbasm,linenos,start={{#line_no_of "" ../../unbricked/objects/main.asm:main-loop}}
Expand Down

0 comments on commit 35acd3f

Please sign in to comment.