HTML and CSS Reference
In-Depth Information
Use the following listing to configure your
Laser.update()
, because it allows you to
integrate collision detection. It's a bit difficult to follow because of all the DOM access, but
please bear with us for this listing.
Listing 7.17. game.jsāMoving lasers