We start with some essentials that hopefully are starting to look familiar:
- An HTML header
- An HTML canvas
- A <SCRIPT> tag to introduce our Javascript
Then, in
Javascript land:
- A variable called ctx which gives us a drawing context for the canvas
- A variable called FPS which holds our frames-per-second rate
- A function which will get called for each frame
- A timer that calls our function every so-many millseconds