From 80c9236d3c8fec339748bdade945cc0225d47a3e Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Thu, 11 Feb 2021 15:58:35 -0500 Subject: [PATCH] NES classic lock --- tetris/modes/marathon_c89.lua | 1 + tetris/rulesets/shirase.lua | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/tetris/modes/marathon_c89.lua b/tetris/modes/marathon_c89.lua index 03bf4e6..e7cbf00 100644 --- a/tetris/modes/marathon_c89.lua +++ b/tetris/modes/marathon_c89.lua @@ -34,6 +34,7 @@ function MarathonC89Game:new() self.enable_hold = false self.next_queue_length = 1 self.additive_gravity = false + self.classic_lock = true self.irs = false end diff --git a/tetris/rulesets/shirase.lua b/tetris/rulesets/shirase.lua index 998a536..a95e7c9 100644 --- a/tetris/rulesets/shirase.lua +++ b/tetris/rulesets/shirase.lua @@ -4,6 +4,7 @@ local Shirase = SRS:extend() Shirase.name = "Shirase RS" Shirase.hash = "Shirase" +Shirase.world = false Shirase.colourscheme = { I = "R", @@ -87,4 +88,8 @@ function Shirase:onPieceDrop(piece) piece.lock_delay = 0 end function Shirase:onPieceMove(piece) piece.lock_delay = 0 end function Shirase:onPieceRotate(piece) piece.lock_delay = 0 end +function Shirase:getDefaultOrientation() + return math.random(4) +end + return Shirase \ No newline at end of file