From cea2212babac8705e7eaa0b9209c8d34eb3289aa Mon Sep 17 00:00:00 2001 From: mint Date: Thu, 6 May 2021 13:44:01 -0400 Subject: [PATCH] what would happen if we didn't round? --- rhythmblock.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rhythmblock.lua b/rhythmblock.lua index 1181d28..4ffcf88 100644 --- a/rhythmblock.lua +++ b/rhythmblock.lua @@ -2,13 +2,9 @@ accentColor = colors.gray buttonColor = colors.lightGray backgroundColor = colors.black -function round(n) - return n % 1 >= 0.5 and math.ceil(n) or math.floor(n) -end - width, height = term.getSize() -centerWidth = round(width / 2) -centerHeight = round(width / 2) +centerWidth = width / 2 +centerHeight = width / 2 peripherals = peripheral.getNames() playing = false if #peripherals < 0 then