added block breaking
This commit is contained in:
11
Program.cs
11
Program.cs
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user