Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monSide = "back"
- mon = peripheral.wrap(monSide)
- mon.setTextScale(2)
- xMax,yMax = mon.getSize()
- function Bdraw(color)
- mon.setBackgroundColor(color)
- for yPos = 1,yMax do
- for xPos = 1,xMax do
- mon.setCursorPos(xPos,yPos)
- mon.write(" ")
- end
- end
- end
- function Animation(xPos,yPos,color)
- mon.setBackgroundColor(color)
- mon.setCursorPos(xPos,yPos)
- mon.write(" ")
- end
- --Wort1
- xPos = {}
- yPos = {}
- --Wort2
- xPos2 = {}
- yPos2 = {}
- while true do
- Bdraw(colors.red)
- for Pixel = 1,#xPos do
- Animation(xPos[Pixel],yPos[Pixel],colors.white)
- sleep(0.1)
- end
- for Pixel = 1,#xPos2 do
- Animation(xPos2[Pixel],yPos2[Pixel],colors.white)
- sleep(0.1)
- end
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement