From 1e0c38bd730a5206160e07a8920aea3b95edcd0c Mon Sep 17 00:00:00 2001 From: the lemons Date: Sun, 26 Mar 2023 21:51:37 -0500 Subject: center polyominoes correctly --- game/polyomino.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/polyomino.lua b/game/polyomino.lua index 4294c7f..8696277 100644 --- a/game/polyomino.lua +++ b/game/polyomino.lua @@ -70,7 +70,7 @@ function M:drop(field) local new = setmetatable({poly = self}, piece) new.field = field new.line = field.lines - (self.bottom - 1) - new.column = math.floor(field.columns / 2 - self.size / 2 + 0.5) + new.column = math.floor(field.columns / 2 - self.size / 2 + 1) new.rotation = 1 if not new:can_occupy() then return -- cgit v1.2.3