HTML and CSS Reference
In-Depth Information
Listing 6.12. game.js—Keyboard listeners
If you want to try it, refresh the page; you'll see that the paddle won't acknowledge input
commands. With Ctrl.left and Ctrl.right properties storing keyboard input, your
Paddle.move() needs to references those properties with the following snippet:
Search WWH ::

Custom Search