Skip to content
A series of short, heavily annotated JavaScript programs
HTML JavaScript CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
circles-bouncing-off-lines
gitlet
space-invaders
.gitignore
LICENSE
README.md
index.html
main.css
package.json

README.md

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.

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.

You can’t perform that action at this time.