"If you enjoyed last week’s post HTML5 player movement like in popular iOS game “Back to Square One” made with Phaser, today there’s more for you as I am updating the prototype adding enemies.
Enemies are moved with a tween with yoyo effect to make them patrol up and down, and we use ARCADE physics to check for collisions."