34 lines
691 B
C#
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();
|
|
}
|
|
} |