Files
voxel/Program.cs
maxwes08 b6655d71d9 update
2025-09-09 10:57:28 +02:00

32 lines
665 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 < 2; x++)
{
for (int y = 0; y < 2; y++)
{
Chunk chunk = new Chunk(1+ x, 1 +y);
world.AddChunk(chunk);
}
}
Renderer.SetWorld(world);
window.Run();
}
}