Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monSide = "back"
- mon = peripheral.wrap(monSide)
- mon.setTextScale(0.5)
- 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
- --Coca
- xPos = { 7, 8, 9, 5, 6, 7, 8, 9,10,11, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14, 5, 6, 7, 8, 9,10,11, 7, 8, 9}
- yPos = {1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8}
- --Cola
- xPos2 = {18,18,18,18,19,20,19,20,21,22,23,24,24,23,25,22,22,24,26,26,26,26,27,28,28,28,29,30,30,30,29,31}
- yPos2 = { 5, 4, 3, 2, 2, 2, 5, 5, 5, 5, 5, 5, 4, 3, 3, 3, 4, 3, 5, 4, 3, 2, 5, 5, 4, 3, 3, 3, 4, 5, 5, 5}
- --while true do
- Bdraw(colors.black)
- 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