lifecycle

fun lifecycle(loop: Window.() -> Unit)

Runs a game loop while shouldClose is false.

This should serve as the main entrypoint to your game. The function will be called repeatedly until the game closes.

Parameters

loop

The game loop to call until the window should be closed