demo recording and playback, collision table

This commit is contained in:
lustlion
2022-02-17 23:39:31 +01:00
parent fb375e352b
commit 8e9078e929
9 changed files with 1063 additions and 42 deletions

View File

@@ -50,7 +50,7 @@ function love.load()
language = "ENG"
LocaleLoad(language)
gravity = 0.2
gravity = 0.14
-- Debug and log stuff
memoryUsage, dtcount = 0, 0
logPrint("mothback: "..collectgarbage("count").." kB, Loading time: "..os.clock().." seconds")
@@ -81,6 +81,8 @@ function love.update(dt)
fps_count = fps_count + 1
current_dt = dt
if DemoRecording or DemoPlayback then Demo:Step() end
-- things per second
dtcount = dtcount + dt
if dtcount >= 1 then
@@ -139,4 +141,6 @@ function love.draw()
if menu_type ~= nil then MenuDraw(menu_type) end
love.graphics.print(game.scale,10,40)
if DemoRecording or DemoPlayback then Demo:Draw() end
end