ol-games: Sprite destination

This example show how to give a destination to a sprite.
You just have to use the ol.Sprite.setDestination() to set the destination you want to go. Then just call ol.Sprite.move() in the game loop to have the sprite moving to that point.
Listen to destination event to know when the sprite reach the final destination.

Options:

Click on the map to move Orky.