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