aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 1c1d836..4e87380 100644
--- a/main.lua
+++ b/main.lua
@@ -37,6 +37,8 @@ end
function love.update(dt)
delta = dt
time = time + dt
+ fps = love.timer.getFPS()
+ sys.s = 60/fps
sys.w = love.graphics.getWidth()
sys.h = love.graphics.getHeight()
minim = love.graphics.getHeight()+10
@@ -77,6 +79,10 @@ function love.keyreleased(key)
if key == "f11" then
v1.c.chat.msgs = v1.c.chat.msgs + 1
end
+ if key == "f10" then
+ v1.c.health = v1.c.health - 5
+ v1.spm = v1.spm + 0.25*(sys.h/1080)
+ end
end
function love.mousereleased(x, y, button)
sys.mouse.p.p = false