Javascript games programming using Phaser in Dreamweaver lesson 3 - Moving object with arrow keys

881 views · Published 12 August 2015 · 6:42 · Indexed 18 October 2026

Channel: Magic Monk · 2015 · Education

Watch on YouTube

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.

More from this channel