HTML and CSS Reference
In-Depth Information
Listing 9.21. run.js—Player update
Progress check!
At this point, you should be able to move your ship around the page without errors, as
shown in
figure9.12
.
If you press X on the keyboard, though, your application will explode
because bullets haven't been configured yet. Let's fix that.