Posted 12 April 2016 - 08:00 PM
Hello! This is my first api I built which took me around 15 minutes. I am excited to present my api to everyone out there.
6 functions (This is an alpha build remember that before you start typing : LACKS FEATURES THIS THING SUCKS) :P/>
tntapi.easyClear()
Download: pastebin get JUMs0kbz tntapi
Please tell me any recommendations to add or bugs to fix!
Cheers,
Nolan
Update Log:
0.2 Alpha
-Added waitforKey and waitKey commands
6 functions (This is an alpha build remember that before you start typing : LACKS FEATURES THIS THING SUCKS) :P/>
os.loadAPI("tntapi")
tntapi.easyClear()
--Usage tntapi.easyClear(colors.?,x, y)
tntapi.easyClear(colors.blue,1,1)
tntapi.easyTextwColor()
--Usage tntapi.TextwColor(colors.?,"text", mode)
-- Mode 1 == term.write, Mode 2 == print
tntapi.TextwColor(colors.lime,"Hello!",2)
tntapi.easyText()
-- Usage tntapi.easyText("text", mode, x, y)
-- Mode 1 == term.write, Mode 2 == print
tntapi.easyText("Hello!",2,1,1)
tntapi.setScreen()
-- Usage tntapi.setScreen(x,y,backgroundcolor,textcolor)
tntapi.setScreen(1,1,colors.orange,colors.black)
tntapi.waitForKey()
-- Usage tntapi.waitForKey(keys.?,"*put the key you put here")
tntapi.waitForKey(keys.e,"e")
tntapi.waitKey()
-- Usage is just tntapi.waitKey()
tntapi.waitKey()
Download: pastebin get JUMs0kbz tntapi
Please tell me any recommendations to add or bugs to fix!
Cheers,
Nolan
Update Log:
0.2 Alpha
-Added waitforKey and waitKey commands
Edited on 13 April 2016 - 03:37 PM