added block breaking

This commit is contained in:
2025-09-03 00:37:42 +02:00
parent 00713db79e
commit 94ebc4ace4
6 changed files with 171 additions and 36 deletions

View File

@@ -1,4 +1,5 @@
using Voxel;
using OpenTK.Mathematics;
using Voxel;
internal class Program
{
@@ -8,15 +9,19 @@ internal class Program
int sizeY = 600;
string title = "Game";
World world = new World();
Window window = new Window(sizeX, sizeY, title);
Player player = new Player(world, Vector3.Zero);
window.Player = player;
Chunk chunk = new Chunk(0, 0);
world.AddChunk(chunk);
ChunkMesh chunkMesh = chunk.GetChunkMesh();
Renderer.AddFaces(chunkMesh.Faces);
window.Chunk = chunk;
window.Run();
}
}