Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.black)
- term.clear()
- local dick = false
- function dickLick()
- while dick == true do
- lick()
- end
- end
- function lick()
- return slurp
- end
- --[[PLANRIGHTHERE --> click to spawn shitty shit
- <OBJECTIVES>
- *shit objects
- *piss objectives]]--
- local timers = {
- gameTick = os.startTimer(.1)
- }
- Shit = {
- x = 0,
- y = 0,
- length = 0
- }
- function Shit:new(x, y, length)
- local titties = {x=x, y=y, length=length}
- return titties
- end
- local shitTab = {}
- function eventHandler(events)
- --userinput
- if events[1] == "mouse_click" then
- shitTab[#shitTab+1] = Shit:new(events[3], events[4], math.random(1, 5))
- end
- end
- function updateGame()
- for i, v in pairs(shitTab) do
- v.y = v.y + 1
- end
- end
- function updateScreen()
- for i, v in pairs(shitTab) do
- term.setBackgroundColor(colors.black)
- term.setCursorPos(v.x, v.y - 1)
- write(math.random(0, 1) == 1 and " " or "")
- term.setBackgroundColor(colors.brown)
- for n = 1, v.length do
- term.setCursorPos(v.x, v.y + n - 1)
- write(" ")
- end
- end
- end
- function loop()
- local events = {os.pullEvent()}
- if events[1] == "timer" then
- updateGame()
- updateScreen()
- if events[2] == timers.gameTick then
- timers.gameTick = os.startTimer(.1)
- end
- else
- eventHandler(events)
- end
- end
- while true do loop(); end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement