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



Category:
Tutorial
Duration: 6:42
846 views
13


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


2015-08-27Windows 10 tips - how to schedule computer to sleep automatically
2015-08-26How to speed up Windows 10 step 1 - create windows 10 bootable disc
2015-08-23Recycle bin won't empty in Windows fix
2015-08-20Shut down computer automatically after copying / moving files
2015-08-17How to install an external microphone to your video camera
2015-08-16Upgrade to Windows 10 from Windows 8.1
2015-08-12Javascript games programming using Phaser in Dreamweaver lesson 8 - Randomly generating enemies
2015-08-12Javascript games programming using Phaser in Dreamweaver lesson 7 - Firing bullets
2015-08-12Javascript games programming using Phaser in Dreamweaver lesson 6 - Groups of Objects
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 5 - Collision Detection
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 3 - Moving object with arrow keys
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 4 - Animation with spritesheets
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 2 - Importing Sprites
2015-08-11Javascript games programming using Phaser in Dreamweaver lesson 1 - Setting up game dimensions
2015-08-02Lego Mindstorms EV3 Space Challenge Mission 3 tutorial
2015-08-02Lego Mindstorms EV3 Space Challenge Mission 2 tutorial
2015-07-27Lego Mindstorms EV3 Space Challenge Mission 1 tutorial
2015-07-25Electrical circuits lesson 5: V=IR for multiple components in series
2015-07-23Electrical Circuits Lesson 4 - Multiple components in series - Current
2015-07-19Electrical Circuits Lesson 3: V = IR
2015-07-19Magic Monk Trailer



Tags:
keyboard events phaser
keyboard events javascript
javascript game tutorial
html5 game tutorial