A series of short, heavily annotated JavaScript programs. (一个简短丰富注释的项目)
- By Mary Rose Cook
- http://maryrosecook.com
- [email protected]
Demonstrates an animation loop, collision detection, keyboard input, drawing to the canvas and playing sounds. (演示动画循环、碰撞检测、键盘输入、画布绘图和播放声音。)
To read the annotated source, open /space-invaders/docs/space-invaders.html in your browser.
(阅读注释源码, 在浏览器打开 /space-invaders/docs/space-invaders.html)
Demonstrates some simple trig that calculates the movement of circles as they bounce off lines. (演示一些简单的三角函数,当圆从直线上弹回时,计算圆的运动。)
To read the annotated source, open /circles-bouncing-off-lines/docs/circles-bouncing-off-lines.html in your browser.

