Skip to content

every

every(game, seconds, fn): () => void

Calls fn every seconds of game time until cancelled (or the scene ends).

Game

number

() => void

() => void