a spinning cube implementation written in C
ensure you have make
installed - fairly certain this project is compatible with windows but no promises ;)
run make
and you can run, rename or move bin-c_ube.out
into /usr/bin/
alternatively, binaries are included in releases here (HIGHLY RECCOMENDED TO USE THE RELEASES VERSION INSTEAD) or in the repo itself here
* CLI ARGUMENTS
* --colour / -c colour (0-256) default: 232 (black)
* --size / -S dictates the size (length side) of the cube default: shortest terminal dimension / 2
* --terminal_x / -X dictates the size of the terminal (x) default: autodetected
* --terminal_y / -Y dictates the size of the terminal (y) default: autodetected
* --terminal_z / -Z dictates the size of the terminal (z) default: autodetected
* --speed / -s terminal refresh rate (frames/sec) default: 60
* -x / -x x rotation angle amount default: 0.1
* -y / -y y rotation angle amount default: 0.2
* -z / -z z rotation angle amount default: 0.3
Currently working on:
- create file structure
- readin user input and put into function
- start parsing and assigning arguments
- create auto assignment for uninputted args
- update auto assignment to include terminal sizes for both win/linux
- create cube vertices
- convert cube_vertices to triangles
- Render triangles
- Rotate triangles
- frame rate sleep things
- shorthand flags
- have triangles display different characters based off cube face
- support depth shading (not that feasible anymore...) nvm i did it lol