commit 44531aa

uint  ·  2026-07-31 23:22:36 +0000 UTC
parent 6ce829a
set chunk height to 16

minecraft expects chunk segments to be 16x16x16
3 files changed,  +12, -9
M TODO
M TODO
+6, -3
 1@@ -1,8 +1,11 @@
 2 uint:
 3-[ ] Wireframe
 4+[X] Wireframe
 5 [-] Face Hiding
 6-[X] Chunk meshing
 7-	[-] Greedily
 8+[-] Chunk meshing
 9+	[ ] Greedily
10+[ ] Separate SDL from main.c
11+[ ] Render multiplayer
12 [ ] Fonts
13 [ ] Maus wayland
14+[ ] MGEvents abstraction
15 
+1, -1
1@@ -6,7 +6,7 @@
2 #include "renderer/renderer.h"
3 
4 #define CHUNK_WIDTH 16
5-#define CHUNK_HEIGHT 32
6+#define CHUNK_HEIGHT 16
7 #define CHUNK_DEPTH 16
8 
9 #define WORLD_WIDTH 10
+5, -5
 1@@ -97,11 +97,11 @@ void chunk_create(Chunk* chunk)
 2 		}
 3 	}
 4 
 5-	chunk_set(chunk, 6, 28, 8, BLOCK_BRICK);
 6-	chunk_set(chunk, 8, 28, 8, BLOCK_BRICK);
 7-	chunk_set(chunk, 7, 29, 8, BLOCK_BRICK);
 8-	chunk_set(chunk, 7, 30, 8, BLOCK_BRICK);
 9-	chunk_set(chunk, 7, 31, 8, BLOCK_STONE);
10+	chunk_set(chunk, 6, 12, 8, BLOCK_BRICK);
11+	chunk_set(chunk, 8, 12, 8, BLOCK_BRICK);
12+	chunk_set(chunk, 7, 13, 8, BLOCK_BRICK);
13+	chunk_set(chunk, 7, 14, 8, BLOCK_BRICK);
14+	chunk_set(chunk, 7, 15, 8, BLOCK_STONE);
15 }
16 
17 BlockType chunk_get(const Chunk* chunk, i32 x, i32 y, i32 z)