From 0b620e212eee6b862f24c5e01d6e5842193e0fc0 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Fri, 8 Jan 2021 15:27:23 -0500 Subject: [PATCH] C88 mode hotfixes --- tetris/modes/marathon_c88.lua | 2 +- tetris/modes/survival_c88.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tetris/modes/marathon_c88.lua b/tetris/modes/marathon_c88.lua index 81cf50d..c7e9eca 100644 --- a/tetris/modes/marathon_c88.lua +++ b/tetris/modes/marathon_c88.lua @@ -143,7 +143,7 @@ function MarathonC88Game:drawScoringInfo() love.graphics.printf("SCORE", 240, 120, 40, "left") love.graphics.printf("LINES", 240, 200, 40, "left") love.graphics.printf("LEVEL", 240, 280, 40, "left") - if self.gravity_multiplier ~= 1 then + if self.gravity_multiplier ~= 1 and self:getGravity() < 20 then love.graphics.printf( self.gravity_multiplier .. "x GRAVITY ACTIVE!", 240, 350, 150, "left" diff --git a/tetris/modes/survival_c88.lua b/tetris/modes/survival_c88.lua index b67a0d2..794bca9 100644 --- a/tetris/modes/survival_c88.lua +++ b/tetris/modes/survival_c88.lua @@ -8,6 +8,10 @@ SurvivalC88Game.name = "Survival C88" SurvivalC88Game.hash = "Shimizu" SurvivalC88Game.tagline = "You can't rotate the pieces initially! What will you do?" +function SurvivalC88Game:new(secret_inputs) + self.super:new(secret_inputs) +end + function SurvivalC88Game:getGravity() return 20 end