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

preview_player
Показать описание
Source code for this lesson:

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.
Рекомендации по теме
Комментарии
Автор

Thank you for an excellent tutorial Monk and for demystifying phaser. Much appreciated.

ezekielthemack
Автор

You are a very good teacher. I've followed your JavaScript and Java tutorial, and now I'm following this tutorial. Keep up your good work and hope to see more coding tutorials from you  =D

hawanajihah
visit shbcf.ru