Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function spawnPlayer(pic, x, y)
- if pic == 0 then
- plr = paintutils.loadImage("gameapi/defaultPlayer")
- paintutils.drawImage(plr, x, y)
- else
- plr = paintutils.loadImage(pic)
- paintutils.drawImage(plr, x, y)
- end
- end
- function titleScreen(txt, bgcolor)
- w, h = term.getSize()
- term.setBackgroundColor(bgcolor)
- term.clear()
- term.setCursorPos(w / 2 - math.floor(string.len(txt) / 2), h / 2)
- print(txt)
- sleep(3)
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement