added seconds since start, tweaked wall jump, added wall friction and isSliding
This commit is contained in:
2
main.lua
2
main.lua
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user