Skip to content

btipling/blockens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blockens

A voxel game project.

image

Requirements

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.

Running

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.

Notes

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:

  1. Create lua texture scripts in the texture editor.
  2. Configure and save blocks with texture scripts in the block editor
  3. Create lua chunk scripts in the chunk editor, the block ids have to match your block ids that will be unique to you.
  4. Save chunks in the chunk editor.
  5. 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.

More images

image

image

image

image

blockens 4_8_2024 8_03_19 PM

blockens 4_8_2024 8_04_38 PM

blockens 4_8_2024 8_07_14 PM

blockens 4_8_2024 8_09_31 PM

image

image

image

image

image

image