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("back")
- mon.setTextScale(1,5)
- mon.setBackgroundColor(colors.blue)
- -- mon.clear()
- centerText("Vorteile der Stadt:", 1,16384)
- centerText("Du kannst selber gute Ideen mit einbringen.", 2,1)
- centerText("Enormer Stadtstrom von 2048 eu/t.", 3,1)
- centerText("Ein kleines Staedtchen bietet Ruhe.", 4,1)
- centerText("Super kruze Wege bei Problemen.", 5,1)
- centerText("Egal ob kreativ beim bauen oder nicht,", 6,1)
- centerText("hier findet jeder ein schönes Heim.",7,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement