I'm new to reactive programming with RxJS and want to build a simple game as a way of getting to grips with the library.

Having looked through the documentation I've not come across a clear example on how best to implement a game loop (see below) using Observables.

Can someone provide a solution, or if not a suitable use case, an explanation on why.

```
function gameLoop() {
    // emit tick event

    window.requestAnimationFrame(gameLoop);
}

window.requestAnimationFrame(gameLoop);

```