summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update chunk rendering, improve chunk loadingAaditya Dhruv3 days8-58/+176
| | | | | | | | | | - On world_init, LOAD_CHUNK amount of chunks are preloaded - Chunks are loaded around the player's current chunk, in a square shape. The size of the shape is controlled by CHUNK_DISTANCE - Allow chunks struct to be independent of a position. We load a chunk TO a position in the world chunk grid (x, y). This allows us to "wrap" chunks, so we have an endless world, but we are really just wrapping around
* Add basic directional lightAaditya Dhruv4 days6-12/+88
|
* Move chunk to be 0,0 alignedAaditya Dhruv4 days2-3/+2
|
* Add mouse-based movement to cameraAaditya Dhruv4 days3-11/+57
| | | | Can use WASD + Mouse to fly around the scene
* Add camera handling and movementAaditya Dhruv4 days11-21/+112
| | | | | | | | Camera related movements have been moved to camera.c - it tracks the matrices as well so we don't have to call it in block_update The player class is empty right now, but the camera will be a child of the player, and the player a child of the engine
* Move input to separate fileAaditya Dhruv4 days6-8/+36
| | | | | - Input is handled in a separate thread, its all kind of unsafe right now but will fix later on
* Add World and multi-chunk renderingAaditya Dhruv5 days7-21/+87
| | | | | | | - More than 1 chunk can now be rendered with the help of the world struct - Block coords are now in world space, not local space - Engine init code cleaned up for cleaner world/chunk handling
* Update libjunk detection in CMakeLists.txtAaditya Dhruv5 days1-1/+2
|
* Add support for chunk and worldAaditya Dhruv5 days5-12/+157
| | | | | | | - Chunk is a array of blocks - World is a array of chunks - Basic chunk plains generation based on simple linear functions - Bunch of functions still not implemented, in design phase
* seed on timeAaditya Dhruv5 days1-0/+2
|
* Improve Block featuresAaditya Dhruv5 days2-14/+33
| | | | | - Rotate block scene at the center - Add block_debug to print block data
* Update local world coords for blockAaditya Dhruv7 days1-8/+9
|
* Fix block_init/draw bug, add more blocks to drawAaditya Dhruv7 days4-15/+27
| | | | | - VAO/VBO binding bug fixed, added explaination in comments - Add 9 rotating blocks
* Better rotating cubeAaditya Dhruv7 days6-49/+45
|
* rotating cubeAaditya Dhruv7 days12-66/+216
|
* wipAaditya Dhruv7 days200-119/+42032
|
* initAaditya Dhruv2026-01-158-0/+8024