Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit e05f1f6

Browse files
committed
errata: p.55, angle increment omitted from book.
1 parent ef26af0 commit e05f1f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

errata.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ Chapter 4 should be titled "Rendering Techniques".
1111

1212
The division operation is extraneous to the equation abstraction. (Submitted by Peter Stema)
1313

14+
The book omits the line where the angle is incremented each frame. (Submitted by
15+
Steve Paget)
16+
17+
ball.x += xspeed;
1418
ball.y = centerY + Math.sin(angle) * range;
19+
angle += yspeed;
20+
ball.draw(context);
1521

1622
## p. 67
1723

0 commit comments

Comments
 (0)