Chunk_UpdateLight called Chunk_SpreadLight inside its per-neighbour loop, so one block edit could nest a 20k-iteration spread inside every step of a 20k-iteration removal pass - billions of iterations at 100% CPU, experienced as the game freezing after placing crafted blocks. The re-lit sources are now collected and re-propagated once after the removal pass finishes. Also adds the first tool tier: six craftable tools (wood/stone pickaxe, axe, shovel; log shafts, no stick item needed) with pixel sprites drawn into the slots, guide-list entries, a placement guard so tools never try to become blocks, and Luanti-style mining speed - the matching tool class breaks its block class 2.5x faster (4x for stone tier): stone 1.5 s bare-handed drops to 0.6 s with a wood pickaxe, 0.375 s with stone.
Katalis is a voxel sandbox built in C on the kryon runtime.
Katalis began as a port of Midless by Sirvoid (MIT); the world, chunk engine and game design come from there. The client no longer links raylib directly: the chunk renderer runs on kryon's 3D surface tier (curated rlgl entry points plus raymath-style math3d) and the menus use the kryon UI toolkit. The desktop build targets OpenGL ES 2 with the GLSL 100 shader pair.
The game launches directly into a local world with a visible cursor; the title screen is reachable from the pause menu. Networking transports (ENet/WebSocket) and the dedicated server are not part of this build yet.
Build: git submodule update --init --recursive, then make (binary
in build/bin/linux/, run it from a directory containing textures/,
e.g. cd client/bin && ../../build/bin/linux/katalis-linux-x86_64).
Gameplay additions over upstream Midless: Luanti-style survival flow -
hold the left button to mine (per-block hardness, progress bar), broken
blocks are picked up, placement consumes the selected hotbar stack
(mouse wheel selects; middle-click picks the block you aim at). E opens
the inventory with a 3x3 crafting grid (drag stacks in, click the
result) plus a recipe guide list with quick-craft. F11 toggles
fullscreen, falling out of the world respawns you, and the inventory
persists with the world in world/player.dat.
Debug aid: KATALIS_DEBUG_INPUT=1 logs look-control state.
Everything below is the original Midless readme.
Kryon port fork (woazixyz): this fork runs the client on kryon instead of linking raylib directly. The chunk renderer uses kryon's 3D surface tier (curated rlgl entry points + raymath-style math3d); the menus use the kryon UI toolkit. The desktop build targets OpenGL ES 2 with the GLSL 100 shader pair. Networking transports (ENet/WebSocket) and the server are not part of this build yet; singleplayer local worlds work.
Build:
git submodule update --init --recursive, thenmake(binary inbuild/bin/linux/, run it from a directory containingtextures/, e.g.cd client/bin && ../../build/bin/linux/midless-linux-*). Debug aids:MIDLESS_AUTOPLAY=1starts straight in a local world with a visible cursor,MIDLESS_AUTOPLAY=2keeps the gameplay cursor lock,KATALIS_DEBUG_INPUT=1logs look-control state.Everything below is the original upstream readme.
Controls
| Input | Action |
|---|---|
| W A S D | Move |
| Space | Jump |
| Left Click | Break block |
| Right Click | Place block |
| Mouse wheel | Block Selection |
| T | Open Chat |
| ESC | Open menu |
Dependencies
| Dependency | Version | Type | Used By |
|---|---|---|---|
| Raylib | 4.5 | Single-File | Client / Server |
| Zpl-c/ENet | 2.3.6 | Single-File | Client / Server |
| FastNoiseLite | - | Single-File | Client / Server |
| stb_ds | - | Single-File | Client / Server |
| MiniLua | - | Single-File | Server |
| For Optional Server's Websocket Support: | |||
| mongoose | 7.8 | Single-Files (.c, .h) | Server |
| OpenSSL | - | Linked | Server |
Compiling for Windows using MinGW
- Download and Build Raylib
- Place single-files dependencies inside /libs
- Edit the makefile's properties if needed
- Run mingw32-make inside the Midless folder where the MakeFile is located.
Make arguments:
BUILD_SERVER=TRUE - Build Midless Server (Doesn't build the client)
SERVER_HEADLESS=TRUE - Compile server without graphics
SERVER_WEB_SUPPORT=TRUE - Compile server with websocket support
DEBUG=TRUE - Debug build
PLATFORM=PLATFORM_WEB - Build for the web (Client only)
License
All code in this repository is licensed under the MIT License.
