From 8dbb75cbef6f28e632fd77843adfe8338e61f14d Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Fri, 8 Oct 2021 20:07:28 -0400 Subject: [PATCH] Basic SOCD handling --- tetris/modes/gamemode.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tetris/modes/gamemode.lua b/tetris/modes/gamemode.lua index 8cceb64..d41df4a 100644 --- a/tetris/modes/gamemode.lua +++ b/tetris/modes/gamemode.lua @@ -126,6 +126,8 @@ function GameMode:update(inputs, ruleset) if inputs["left"] or inputs["right"] then inputs["up"] = false inputs["down"] = false + elseif inputs["down"] then + inputs["up"] = false end end