demo recording and playback, collision table
This commit is contained in:
6
main.lua
6
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user