Added "Always reverse" option for rotation reversal.

This commit is contained in:
Joe Zeng
2020-11-06 19:17:32 -05:00
parent f52da36bf7
commit 9b04e14388
10 changed files with 61 additions and 12 deletions

View File

@@ -127,7 +127,14 @@ function Tengen:onPieceDrop(piece, grid)
piece.lock_delay = 0 -- step reset
end
function Tengen:get180RotationValue() return config["reverse_rotate"] and 1 or 3 end
function Tengen:get180RotationValue()
if config.gamesettings.world_reverse == 3 then
return 1
else
return 3
end
end
function Tengen:getDefaultOrientation() return 3 end -- downward facing pieces by default
return Tengen