Javascript games programming using Phaser in Dreamweaver lesson 3 - Moving object with arrow keys
Channel:
Subscribers:
65,900
Published on ● Video Link: https://www.youtube.com/watch?v=38gUl8T6pa4
Source code for this lesson:
http://magicmonktutorials.com/phaser/lesson3.html
In this lesson we learn how to set up the movement of the player so when we press the four arrow keys, it can move up, down, left, right. To do this we needed to define some variables as keyboard listeners, and then we use some if statements to program what happens when these keys are pressed.
Other Videos By Magic Monk
Tags:
keyboard events phaser
keyboard events javascript
javascript game tutorial
html5 game tutorial