lifecycleForTime

fun lifecycleForTime(seconds: Double, loop: Window.() -> Unit)

Runs a game loop for a specific duration in seconds.

This is useful for testing or scenarios where you want to limit the execution time.

Parameters

seconds

The number of seconds to run the loop for

loop

The game loop to call for the specified duration