I have completed the game logic just need to add the game loop - is there an easy way to encapsulate all my events in a loop (I'm used to C++, where I would just add a do-while loop)
Develop games in your browser. Powerful, performant & highly capable.
The events are automatically run once per frame. There's no need to setup an explicit game loop.