aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-10-29 23:58:24 -0700
committer1029chris <1029chris@gmail.com>2016-10-29 23:58:24 -0700
commit7e743cfec3e2ee7f8e64a28db45ef02a5a8ebc56 (patch)
treeb7610db84791af4741d0cc1b5ac5434535c58883
parentd293377e7dedd102e9afb2a51fda3d3375d7904d (diff)
cheat for testing purposes
if you press 1 during the loading screen fade, then the first fight will be considered completed same if you press 2
-rw-r--r--main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 6a9b923..4df98c2 100644
--- a/main.lua
+++ b/main.lua
@@ -39,6 +39,12 @@ function love.update(dt)
end
if fade == 1 and fadeOpacity < 255 and pause.p == false then
fadeOpacity = fadeOpacity + 5
+ if scene == 0 and love.keyboard.isDown("1") == true then
+ v1.complete = true
+ elseif scene == 0 and love.keyboard.isDown("2") == true then
+ v1.complete = true
+ v2.complete = true
+ end
elseif fade == 0 and fadeOpacity > 0 and pause.p == false then
fadeOpacity = fadeOpacity - 5
end