Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function centerText(text, y, color)
- -- mon.clear()
- mX = mon.getSize()
- x = math.floor(mX/2) - math.floor(string.len(text)/2)
- mon.setCursorPos(x, y)
- mon.setTextColor(color)
- mon.write(text)
- end
- mon = peripheral.wrap("bottom")
- mon.setTextScale(2)
- mon.setBackgroundColor(colors.blue)
- -- mon.clear()
- centerText("Willkommen in der Oberwelt von Babulmia", 1,16384)
- centerText("Lies dir bitte die Regeln durch und ", 2,1)
- centerText("wende dich bei Fragen oder beim Wunsch", 3,1)
- centerText("der Stadt beizutreten an Babulm", 4,1)
- centerText("Viel Spaß bei der Erkundung der ", 5,1)
- centerText("einzelnen Bereiche der Stadt,", 6,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement