diff --git a/src/scene.fnl b/src/scene.fnl index 2d2d706..30dbd27 100644 --- a/src/scene.fnl +++ b/src/scene.fnl @@ -43,8 +43,11 @@ (bind-love-mouse :mousepressed) (bind-love-mouse :mousereleased) - (fn love.update [dt] - (fns.update state (math.min dt (/ 1 min-framerate)))) + (set love.update + (match fns.update + (where callback) (fn [dt] + (callback state (math.min dt (/ 1 min-framerate)))) + _ (fn [dt] nil))) (fn love.draw [] ;; center the screen and preserve aspect