Pure JavaScript demo of game control mechanisms for the MDN Games articles.
Online demo: end3r.github.io/JavaScript-Game-Controls
Articles: Implementing game control mechanisms
- Mobile touch controls
- Desktop mouse and keyboard controls
- Desktop gamepad controls
- Unconventional controls
This game demo is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). See the human-readable summary or legalcode for details.
Under this license you are permitted to remix/reuse/redistribute my work as long as you credit me (Andrzej Mazur) for the original work and don’t use it for commercial purposes. If someone does wish to use it in a commercial context, they should e-mail me at [email protected] to discuss the terms of use.