Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monside = "back"
- mon = peripheral.wrap(monside)
- local xMax,yMax = mon.getSize()
- Apfelcounter = 0
- while true do
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextColor(colors.white)
- mon.write("made by ")
- sleep(0.4)
- mon.setTextColor(colors.orange)
- mon.write("Nike622000")
- sleep(3)
- mon.clear()
- for i = 0,800,1 do
- c = math.random(15)
- x = math.random(xMax)
- y = math.random(yMax)
- w = math.random(4)
- mon.setCursorPos(x,y)
- c=2^c
- if Apfelcounter == 300 then
- Apfelcounter = 0
- end
- mon.setTextColor(c)
- if w == 1 then
- mon.write("Apfel")
- Apfelcounter = Apfelcounter+1
- term.setCursorPos(1,2)
- term.setTextColor(colors.lime)
- print("Apfelcounter: "..Apfelcounter)
- end
- if w == 2 then
- mon.write("Baum")
- end
- if w == 3 then
- mon.write("Birne")
- end
- if w == 4 then
- mon.write("Banane")
- end
- mon.setCursorPos(1,2)
- mon.write("momentane Farbe ")
- mon.setCursorPos(1,1)
- mon.setTextColor(colors.white)
- mon.write("Woerter-Counter: "..i.." ")
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement