Skip to content
Open navbar menu
Sign UpLog In
Keegan-PP

Keegan Carey

@Keegan-PP
  • 3D Console Cube Java

    Cover page
    Made with Java

    Umm it makes a 3D Cube in the java console.

    Have fun with the numbers, it can technically be rescaled to any size.

    (if you get an array out of bounds that is negative, then you need to increase o (which is the Origin)) (if you get an array out of bounds that is positive, you need to increase the resize variable)

    Setting axis to 'p' will make the cube into a rotating plane

    //my code is 100% definitely not optimized, I only recently started Java// (basically don't look at my code as an example of how to write your own)

    If you have any ways to improve it that would be cool!

    Recent comments (0)
  • Rule 86

    Cover page
    Made with Java

    I made this replit to fulfill rule 86 of the Internet.

    You can also render your own videos by downloading them to the project files and running the render command on startup.

    (I made this in like 3 days so don't expect it to be super optimized)

    Recent comments (0)
  • 3D Cube Renderer

    Cover page
    Made with Java

    Use the Object class to create, manipulate, and render cubes!

    ---Create a new cube with--- Object cubeName = new Object();

    ---Manipulate it With--- cubeName.translate(xTrans, yTrans, zTrans);
    (0, 0, 0) is center of screen

    cubeName.scale(scale); (scale is multiplicative)

    cubeName.rotate(xAxis, yAxis, zAxis); (degrees around axis)

    ---Apppend Cube to Display--- (re append cubes every frame where a change is made)

    display.clear(); //clears display to prepare for drawing new frame

    displayName.append(cubeName.getDisplay()); //appends the cube to the display

    displayName.draw(); //draws entire display (do this after appending)

    Recent comments (3)
    Keegan-PP
    Keegan-PP
    9 months ago
    • better line drawing to the line algorithm that will allow it to implement \ and / characters to make better lines
    • added culling so that hidden lines will not be rendered
    • added faces so that you can make the block faces look different from the lines
    GavinKIRK2
    GavinKIRK2
    9 months ago

    this is cool, but more i think needs to be done

All Repls