aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index 8ab39d5..6a9b923 100644
--- a/main.lua
+++ b/main.lua
@@ -88,8 +88,13 @@ function love.keyreleased(key)
end
end
if key == "f10" then
- v1.c.health = v1.c.health - 5
- v1.spm = v1.spm + 0.5*(sys.h/1080)
+ if scene == 2 then
+ v1.c.health = v1.c.health - 5
+ v1.spm = v1.spm + 0.5*(sys.h/1080)
+ elseif scene == 3 then
+ v2.c.health = v2.c.health - 5
+ v2.spm = v2.spm + 0.20*(sys.h/1080)
+ end
end
if key == "escape" then
pause.esc = false