time based scroll
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-03-22 19:03:05 +01:00
parent 93df710d14
commit 284c5aa4c8
5 changed files with 30 additions and 14 deletions

View File

@@ -17,6 +17,15 @@ end
--- @within Main
function TIC()
init_game()
local now = time()
if Context.last_frame_time == 0 then
Context.delta_time = 0
else
Context.delta_time = (now - Context.last_frame_time) / 1000
end
Context.last_frame_time = now
cls(Config.colors.black)
local handler = Window.get_current_handler() -- Get handler from Window manager
if handler then