Examples: Keyboard Control

Using MooTools events to capture keyboard input and manipulate the canvas.

Info

Use the cursor-keys (left,right) to move, space to jump.

The events are added to the window, but you can use any other setup to capture the events you need.

Source

  1. Basic Setup
  2. Layer Manipulation
  3. Basic Animation
  4. Interactivity
  5. Keyboard Control
  6. Advanced Animation