added seconds since start, tweaked wall jump, added wall friction and isSliding

This commit is contained in:
lustlion
2022-02-27 05:30:46 +01:00
parent e3a5ab0c42
commit 2b9f605a0a
3 changed files with 25 additions and 12 deletions

View File

@@ -17,6 +17,7 @@ function love.load()
love.graphics.setDefaultFilter("nearest") -- good pixel
game = {
secondsSinceStart = 0,
scale = 2,
width = love.graphics.getWidth(),
height = love.graphics.getHeight(),
@@ -68,6 +69,7 @@ function love.update(dt)
fps_current = fps_history:Push(1/dt)
current_dt = dt
game.secondsSinceStart = game.secondsSinceStart + dt
if DemoRecording or DemoPlayback then Demo:Step() end