diff options
author | the lemons <citrons@mondecitronne.com> | 2023-03-26 21:51:37 -0500 |
---|---|---|
committer | the lemons <citrons@mondecitronne.com> | 2023-03-26 21:51:37 -0500 |
commit | 1e0c38bd730a5206160e07a8920aea3b95edcd0c (patch) | |
tree | 8fb3017a2fc87626dc3cb3252882ecd0c9d13d09 | |
parent | ea77b0aad8d6e4a56f81b314d9aa37e527a235d9 (diff) |
center polyominoes correctly
-rw-r--r-- | game/polyomino.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |