From 48dfedec1c91bc8a64114aeeee2c03f951ba7ca8 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 9 Jan 2021 23:17:33 -0500 Subject: [PATCH] DS-World --- tetris/rulesets/ds_world.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tetris/rulesets/ds_world.lua diff --git a/tetris/rulesets/ds_world.lua b/tetris/rulesets/ds_world.lua new file mode 100644 index 0000000..d729e0d --- /dev/null +++ b/tetris/rulesets/ds_world.lua @@ -0,0 +1,22 @@ +local SRS = require 'tetris.rulesets.standard_exp' + +local DS = SRS:extend() + +DS.name = "DS-World" +DS.hash = "DS-World" + +DS.are = false + +function DS:onPieceDrop(piece) piece.lock_delay = 0 end +function DS:onPieceMove(piece) piece.lock_delay = 0 end +function DS:onPieceRotate(piece) piece.lock_delay = 0 end + +function DS:get180RotationValue() + if config.gamesettings.world_reverse == 1 then + return 1 + else + return 3 + end +end + +return DS \ No newline at end of file