This commit is contained in:
maxwes08
2025-09-09 10:57:28 +02:00
parent 3678eaa5f8
commit b6655d71d9
6 changed files with 148 additions and 81 deletions

View File

@@ -15,14 +15,17 @@ internal class Program
window.Player = player;
Chunk chunk0 = new Chunk(0, 0);
Chunk chunk1 = new Chunk(0, 1);
for (int x = 0; x < 2; x++)
{
for (int y = 0; y < 2; y++)
{
Chunk chunk = new Chunk(1+ x, 1 +y);
world.AddChunk(chunk0);
world.AddChunk(chunk1);
world.AddChunk(chunk);
}
}
Renderer.AddChunkMesh(chunk0.GetChunkMesh());
Renderer.AddChunkMesh(chunk1.GetChunkMesh());
Renderer.SetWorld(world);
window.Run();
}