A voxel game project.
This project is built with OpenGL 4.6 and thus will not work with MacOS until I build a backend to support that OS.
I am developing this game using Windows 11 Pro NVDIA GeForce RTX 3060 Laptop GPU and a GeForce RTX 3070 Desktop GPU.
Currently using zig version 0.12.0 to build.
The project must currently be run from the projects root directory.
zig build run
Should do it. Note, lua script evals are much slower in debug builds than they are in fast release builds.
There is a very mimial default world that is created on first run. Setting up a world requires writing lua scripts for textures and blocks. There are a few in the src/script/lua folder to get started with. Most of chunk scripts assume block ids that will not match what you create.
The order to build a world from scripts is:
- Create lua texture scripts in the texture editor.
- Configure and save blocks with texture scripts in the block editor
- Create lua chunk scripts in the chunk editor, the block ids have to match your block ids that will be unique to you.
- Save chunks in the chunk editor.
- Go into world editor and configure different coordinates to load your saved chunks. It's not very intuitve right now.
- In the world editor have update the table with your options.
- Generate the world.
- Save the world.
- If you save the world before you generated I think it will not save any of your changes. WIP to fix.