The Basic Approach
Explore how to move a shape, such as a triangle, on the HTML5 canvas using keyboard arrow keys. Understand how to adjust the shape’s position by modifying coordinates and connect these changes to keyboard events to create interactive canvas graphics.
We'll cover the following...
We'll cover the following...
By now, you’ve probably seen how to work with the keyboard. You may even have seen the approach we use for having something we draw ...