optimized faces
This commit is contained in:
28
Program.cs
28
Program.cs
@@ -12,34 +12,6 @@ internal class Program
|
||||
World world = new World();
|
||||
Window window = new Window(sizeX, sizeY, title);
|
||||
|
||||
Console.WriteLine("Generating map...");
|
||||
|
||||
int worldSizeX = 2;
|
||||
int worldSizeY = 2;
|
||||
|
||||
float maxI = worldSizeX * worldSizeY;
|
||||
int i = 0;
|
||||
int lastPercentage = 0;
|
||||
|
||||
for (int x = 0; x < worldSizeX; x++)
|
||||
{
|
||||
for (int y = 0; y < worldSizeY; y++)
|
||||
{
|
||||
i++;
|
||||
Chunk chunk = new Chunk(x, y);
|
||||
world.AddChunk(chunk);
|
||||
|
||||
int percentage = (int)((i / maxI) * 100);
|
||||
if (percentage > lastPercentage)
|
||||
{
|
||||
lastPercentage = percentage;
|
||||
Console.WriteLine((percentage).ToString() + "%");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Console.WriteLine("Generated " + maxI.ToString() + " chunks");
|
||||
|
||||
Renderer.SetWorld(world);
|
||||
|
||||
Vector3 startPos = new Vector3(15, 64, 15);
|
||||
|
||||
Reference in New Issue
Block a user