26 lines
583 B
C#
26 lines
583 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);
|
|
|
|
Renderer.SetWorld(world);
|
|
|
|
Vector3 startPos = new Vector3(15, 64, 15);
|
|
Player player = new Player(startPos, world);
|
|
|
|
window.Tick += player.Tick;
|
|
window.Update += player.Update;
|
|
window.Update += Camera.UpdateFOV;
|
|
|
|
window.Run();
|
|
}
|
|
} |