Summary
All too often I find myself wanting an API that does what I need it to and nothing more - I don't need a lot of pretty wrapping paper, I just want the meat of the product. Hence, KISS (Keep It Simple Stupid) APIs.
Current Projects
An important note!
Do not use os.loadAPI to load these APIS. Use dofile([filename]) instead.
KISS Navigation
This is an efficient turtle navigation API. It will not make any unnecessary turns, and is only 6 lines in compressed form. You should note that the turtle will navigate first along the x-axis, then along the z-axis, and finally along the y-axis.
Usage:
turtle.goto(x,y,z) turtle.turnTo([0-3])
Pastebin Compressed -> J2pcaLBW
Pastebin Uncompressed -> ruiUdCcH
GitHub Repository
Full Compressed Code
Spoiler
KISS Button API
This button API is about as simple as it gets, and has no uncompressed version for easy perusal as I wrote it in the compressed form directly.
Usage:
#The button API has only three functions:
button:n(table) # Creates a new button
button:d() # Draws all the buttons
button:cc(int,int) # Checks if a button is clicked, and if so then returns a reference to the button
#The 'button:n()' function takes a table with these arguments:
{
x=[x-pos];
y=[y-pos];
h=[height];
t=[text];
c=[color];
}
Pastebin Link-> F5AW5ZD3
Example program
GitHub Repository
Full Compressed Code
Spoiler
Projects in the Works
Your name here: Your project here
Currently, I do not have any more KISS APIs in the works, but if you have any contributions or suggestions then I would be more than happy to take them!
General Q/A
Do you write all the code by hand? Yes.
Even the compressed code? Yes.
Why do you compress the code? Mainly because I think it's fun. I know, I have a sick and twisted mind
I found a bug. Can I take it upon myself to fix the bug and then submit it to your GitHub repository for a merge? Certainly! I would be glad to accept any contributions you may have.
I have a program that would fit into this repository nicely... It would be awesome if KISS APIs turned into a community project. If you have a program that does things efficiently and is simple to use, by all means submit it via the GitHub repository link below and notify me through either PM or a post in this thread.
GitHub Repository












