- ComputerCraft | Programmable Computers for Minecraft
- → unnamedcoder's Content
unnamedcoder's Content
There have been 19 items by unnamedcoder (Search limited from 10-February 22)
#258388 Post Your Internet Speed!
Posted by
unnamedcoder
on 25 August 2016 - 09:12 AM
in
General
#255718 FlappyPixel - A FlappyBird implementation for Computercraft!
Posted by
unnamedcoder
on 07 July 2016 - 04:07 PM
in
Games
Creator, on 07 July 2016 - 07:54 AM, said:
unnamedcoder, on 05 July 2016 - 05:57 PM, said:
Thanks, will test it ASAP, and if I like it (which I am sure i will), I will put it for downloading and give credits.
#255570 FlappyPixel - A FlappyBird implementation for Computercraft!
Posted by
unnamedcoder
on 05 July 2016 - 05:57 PM
in
Games
#255203 Classic - pretty OOP in CC
Posted by
unnamedcoder
on 30 June 2016 - 09:39 PM
in
APIs and Utilities
#254141 Pine3D - Best performing 3d graphics library for CC!
Posted by
unnamedcoder
on 18 June 2016 - 11:43 AM
in
APIs and Utilities
Incinirate, on 18 June 2016 - 07:12 AM, said:
vert1 = {0,0,0}
vert2 = {1,0,0}
vert3 = {0,1,0}
face = {vert1,vert2,vert3}
You then have all the information to draw a triangle in face, you can easily change it to work with quadrilaterals as well.face = { {0,0,0}, {1,0,0}, {0,1,0} }
#253954 Pine3D - Best performing 3d graphics library for CC!
Posted by
unnamedcoder
on 16 June 2016 - 08:14 PM
in
APIs and Utilities
Xelostar, on 16 June 2016 - 07:32 PM, said:
Can you make the "drawing space" a 10 by 10? That would be useful. I will probably upload by API tomorrow.
Sure, 10 by 10, I won't be able to make this until the 7th of July, so unless u wanna make it, go ahead
#253924 Multitasking - rewritten!
Posted by
unnamedcoder
on 16 June 2016 - 05:43 PM
in
APIs and Utilities
#253913 Pine3D - Best performing 3d graphics library for CC!
Posted by
unnamedcoder
on 16 June 2016 - 03:12 PM
in
APIs and Utilities
Xelostar, on 14 June 2016 - 03:33 PM, said:
unnamedcoder, on 14 June 2016 - 03:00 PM, said:
Xelostar, on 14 June 2016 - 12:36 PM, said:
I advise you to wait until I release my API. Then you can use it to draw what people are creating.
Well, it still is hard to create a program for creating models...
Maybe you can make it so that the user can click somewhere on the screen (2d) and then give a height value to that point. Later the user can connect these points to draw lines. I wish you a lot of succes!
Yeah I was thinking about that, I could make it next month, since I have to do exams starting monday and it is getting hectic for me, I need to spend my time on revision etc. I know exactly how I'm going to do it, I'll just need some time, also could you specify the dimensions of the model?
Awesome! Take your time!
If you mean that x and z are length and width and that y is the height, jsut like in minecraft, then here is your answer.
If you mean how big it shoud be:
from (-0.5, -0.5, -0.5) to (0.5, 0.5, 0.5) would be great!

Sorry for the messy handwriting
#253764 Pine3D - Best performing 3d graphics library for CC!
Posted by
unnamedcoder
on 14 June 2016 - 03:00 PM
in
APIs and Utilities
Xelostar, on 14 June 2016 - 12:36 PM, said:
I advise you to wait until I release my API. Then you can use it to draw what people are creating.
Well, it still is hard to create a program for creating models...
Maybe you can make it so that the user can click somewhere on the screen (2d) and then give a height value to that point. Later the user can connect these points to draw lines. I wish you a lot of succes!
Yeah I was thinking about that, I could make it next month, since I have to do exams starting monday and it is getting hectic for me, I need to spend my time on revision etc. I know exactly how I'm going to do it, I'll just need some time, also could you specify the dimensions of the model?
#253732 Pine3D - Best performing 3d graphics library for CC!
Posted by
unnamedcoder
on 14 June 2016 - 12:03 AM
in
APIs and Utilities
Xelostar, on 13 June 2016 - 03:55 PM, said:
If you want to have a 2d line drawing API, you could just use:
paintutils.drawLine(x1, y1, x2, y2, color)But I assume you want something like this:
for lineNr, lineCoordinates in pairs(linesToDraw) do paintutils.drawLine(lineCoordinates.x, lineCoordinates.y, lineCoordinates.x2, lineCoordinates.y2, lineColor) endAnyway, please let me know when you are getting somewhere!
Well, at the moment I'm trying to figure out a way to do this, I was thinking that it could be done with layers, the arrow keys will decide which layer you are editing therefore you could create full block shapes, another idea was placing points to connect lines to, I'm still trying to wrap my head around the concept.
#253710 Pine3D - Best performing 3d graphics library for CC!
Posted by
unnamedcoder
on 13 June 2016 - 02:56 PM
in
APIs and Utilities
Xelostar, on 12 June 2016 - 09:07 PM, said:
I will probably use some kind of table with relatve coordinates and a few things to draw the lines and stuff. The frame currently looks something like this:
shapeFrame = {
coordinates = {
{x = -0.5, y = -0.5, z = -0.5}, -- These are the coordinates for one corner
{x = -0.5, y = -0.5, z = 0.5},
{x = -0.5, y = 0.5, z = 0.5},
{x = -0.5, y = 0.5, z = 0.5},
{x = 0.5, y = -0.5, z = 0.5},
{x = 0.5, y = -0.5, z = 0.5},
{x = 0.5, y = 0.5, z = 0.5},
{x = 0.5, y = 0.5, z = 0.5},
},
lines = {
{1, 5, colors.red}, -- Refer to the index numbers of the coordinates and the color of the line
{2, 6, colors.red},
{3, 7, colors.red},
{4, 8, colors.red},
{1, 3, colors.red},
{2, 4, colors.red},
{5, 7, colors.red},
{6, 8, colors.red},
{1, 2, colors.red},
{3, 4, colors.red},
{5, 6, colors.red},
{7, 8, colors.red},
}
}
If you can pull such a thing off, I will make my API able to load those kind of models. If you have a better idea of how a model can be saved, please let me know.
I'll have a go at making a program that allows you to edit and create objects, if you wanna work by yourself, I'll leave you to it
EDIT: could you possibly provide a 2d linedrawing api for me?
#253657 Virus Remover (Disk)
Posted by
unnamedcoder
on 12 June 2016 - 08:46 PM
in
APIs and Utilities
#253654 Pine3D - Best performing 3d graphics library for CC!
Posted by
unnamedcoder
on 12 June 2016 - 08:35 PM
in
APIs and Utilities
Xelostar, on 12 June 2016 - 05:56 AM, said:
I will split my code into an API other people can use and a demo which you can also edit.
I am almost done doing this!
#253575 [Deleted]
Posted by
unnamedcoder
on 11 June 2016 - 10:17 PM
in
APIs and Utilities
moTechPlz, on 16 April 2016 - 06:46 PM, said:
tTest = { 4, 6, 8, 10, 12 }
charts.tableLines( "", 3, 3, tTest, 0 )
The following keywords are reserved and cannot be used as names: and, break, do, else, elseif, end, false, for, function, if, in, local, nil, not, or, in, local, nil, not,or, repeat, return, then, true, until, while.
#253573 Scoreboard.
Posted by
unnamedcoder
on 11 June 2016 - 10:11 PM
in
APIs and Utilities
#253557 Pine3D - Best performing 3d graphics library for CC!
Posted by
unnamedcoder
on 11 June 2016 - 05:38 PM
in
APIs and Utilities
#253553 Simple options list creator!
Posted by
unnamedcoder
on 11 June 2016 - 05:12 PM
in
APIs and Utilities
#253514 Simple options list creator!
Posted by
unnamedcoder
on 11 June 2016 - 03:56 AM
in
APIs and Utilities
Explanation:
To use the menu, you can use the up and down arrowkeys, hit enter to select.
If you select the first option, the function will return 1 (number), if you select option 2, it will return 2 and so on. The function takes 2 arguments, string and a table, title and the options, there will be examples below for you to see. You could load this script as an API or just paste it at the top of your code, up to you.
Download:
http://pastebin.com/EJfeq8Dp - OR - pastebin get EJfeq8Dp listmaker
Screenshots and examples:

this is an example program, using mainMenu("This is an example!!\nMultiple lines work too!\nSee!\n", {"A","B","C","D","E","You can have as many options as you wish!"}) try it yourself!
Any hints or suggestions? PM me! Thanks for reading!
#253118 Creating a computercraft virus, any ideas?
Posted by
unnamedcoder
on 06 June 2016 - 03:41 AM
in
Programs
- ComputerCraft | Programmable Computers for Minecraft
- → unnamedcoder's Content


