User Interaction

In this lesson, you will learn techniques for handling user interaction in HTML Canvas-based games.

Applications written for HTML5 Canvas offer no special features to handle user input. Essentially, HTML user input involves using the event-handling system built into browsers.

Keyboard events

We are using the arrow keys to move and rotate the pieces. For this to ...