summaryrefslogtreecommitdiff
path: root/src/engine.c
Commit message (Collapse)AuthorAgeFilesLines
* Add basic directional lightAaditya Dhruv4 days1-1/+1
|
* Move chunk to be 0,0 alignedAaditya Dhruv4 days1-2/+1
|
* Add camera handling and movementAaditya Dhruv4 days1-0/+10
| | | | | | | | 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 days1-7/+1
| | | | | - 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 days1-6/+21
| | | | | | | - 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
* Add support for chunk and worldAaditya Dhruv5 days1-12/+15
| | | | | | | - 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
* Fix block_init/draw bug, add more blocks to drawAaditya Dhruv7 days1-11/+17
| | | | | - VAO/VBO binding bug fixed, added explaination in comments - Add 9 rotating blocks
* Better rotating cubeAaditya Dhruv7 days1-1/+1
|
* rotating cubeAaditya Dhruv7 days1-0/+62