2025-02-04 20:42:28 +00:00
|
|
|
-- called every frame, with constant delta time
|
|
|
|
function game_tick()
|
2025-02-04 20:54:05 +00:00
|
|
|
-- ctx.initialization_needed is true first frame and every time dynamic reload is performed
|
|
|
|
if ctx.initialization_needed then
|
|
|
|
-- ctx.udata persists on reload
|
|
|
|
ctx.udata = {}
|
|
|
|
end
|
2025-02-04 20:42:28 +00:00
|
|
|
end
|