Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by Mavric on YouTube--
- --"\3", "\4", "\5" and "\5" are the emojis for the different suits--
- function drawCard(x, y, char, suit)
- if (suit == "\5" or suit == "\6") then
- color = colors.black
- else
- color = colors.red
- end
- local pic = paintutils.loadImage("/blackjack/card.nfp")
- paintutils.drawImage(pic, x, y)
- term.setCursorPos(x + 1, y + 1)
- term.setBackgroundColor(1)
- term.setTextColor(color)
- print(char)
- term.setCursorPos(x + 3, y + 3)
- print(suit)
- if char == 10 then
- term.setCursorPos(x + 4, y + 5)
- else
- term.setCursorPos(x + 5, y + 5)
- end
- print(char)
- end
Add Comment
Please, Sign In to add comment