We're going to start with a bunch of stuff you've seen many times before:
- An HTML wrapper, and a canvas
- A ctx variable, which gives a "drawing context" for the canvas
- The definition of MySprite object, which includes the ability to rotate and flip
- A function that can detect if two sprites are touching
- A variable called "bird", which is a MySprite and loads an image of the flappy bird
- A frame render function, which gets called by a timer according to our FPS
Scroll around the code, and make sure everything looks familiar and that you understand why it's there.
