Myvideo

Guest

Login

JavaScript HTML Game Development Tutorial 8 - JavaScript Keyboard Controls (using jQuery events)

Uploaded By: Myvideo
14 views
0
0 votes
0

Download source code for tutorial series here: JavaScript keyboard events tutorial for HTML5 canvas-based video games is the tutorial 8 in the gamedev series. First we cover ASCII key codes and then we go deep into the forest of keypress (keyup and keydown) events using jQuery and JavaScript keyboard event keyCode property. This can be also achieved using regular JavaScript's addEventListener functions. It's up to you. JavaScript game engine aka HTML5 game engine tutorial series by Dev Tigris (indiedev tutorial channel). This may be a little tedious, but it's a necessary step before we dive into actual game development. Everyone should know how to control game characters with the keyboard anyways! ASCII codes for arrow keys on the keyboard, as well as W S A D (wsad) controls are explained. There is room for adding your own. Once we got this behind us, we'll be ready to control just about any game character using the keyboard in any future games we'll be working on .

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later