Lesson 3: Keeping it on the Screen

This video will likely be best viewed in fullscreen mode.  It's about 4 minutes long.  You can download the resulting file below.

In this lesson, we create a new function called ensureBounds in order to keep our hero on the screen.  We also create a new HTML element to represent our screen's background.  We finish by styling the background with a new CSS selector.

Timothy James,
Jul 20, 2015, 6:44 PM