ol-games: Sprite path

This example show how a sprite can follow a path.
You can use the ol.Sprite.setPath() to set the path to follow. Then just call ol.Sprite.move() in the game loop to have the sprite moving along the path. Use ol.Sprite.stop() and ol.Sprite.restart() to control the movement.
Listen to :

Options: