aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-10-29 23:28:39 -0700
committer1029chris <1029chris@gmail.com>2016-10-29 23:28:39 -0700
commitd293377e7dedd102e9afb2a51fda3d3375d7904d (patch)
tree588181ae53b101250cf4ec2a5931066f60c76c56 /main.lua
parenta6bce9a2ac2d1dc641f166c76191627b01cec64c (diff)
Added second half and ending of second fight
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