Files
voxel/Program.cs
2025-09-09 13:31:44 +02:00

34 lines
691 B
C#

using OpenTK.Mathematics;
using Voxel;
internal class Program
{
private static void Main(string[] args)
{
int sizeX = 800;
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;
for (int x = 0; x < 4; x++)
{
for (int y = 0; y < 4; y++)
{
Chunk chunk = new Chunk(x, y);
world.AddChunk(chunk);
}
}
// xmax ymin gör bugg
Renderer.SetWorld(world);
window.Run();
}
}