Skip to content

Samdyddd/annotated-code

 
 

Repository files navigation

Annotated code

A series of short, heavily annotated JavaScript programs. (一个简短丰富注释的项目)

Space Invaders

Demonstrates an animation loop, collision detection, keyboard input, drawing to the canvas and playing sounds. (演示动画循环、碰撞检测、键盘输入、画布绘图和播放声音。)

A screenshot of Space Invaders(太空入侵者截图)

To read the annotated source, open /space-invaders/docs/space-invaders.html in your browser. (阅读注释源码, 在浏览器打开 /space-invaders/docs/space-invaders.html

Circles bouncing off lines(从线条反弹的圆)

Demonstrates some simple trig that calculates the movement of circles as they bounce off lines. (演示一些简单的三角函数,当圆从直线上弹回时,计算圆的运动。)

An animation of circles bouncing off lines(圆从直线上反弹的动画截图)

To read the annotated source, open /circles-bouncing-off-lines/docs/circles-bouncing-off-lines.html in your browser.

About

A series of short, heavily annotated JavaScript programs(简短注释丰富的js代码程序);中文翻译理解

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 75.7%
  • JavaScript 13.4%
  • CSS 10.9%