mirror of
https://fem.mint.lgbt/m/Rhythmblock.git
synced 2024-08-14 20:27:11 +00:00
what would happen if we didn't round?
This commit is contained in:
parent
504d8f4550
commit
cea2212bab
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue