player added

This commit is contained in:
maxwes08
2025-09-30 10:58:12 +02:00
parent 38dccf0a84
commit 11f76ca429
11 changed files with 259 additions and 48 deletions

View File

@@ -11,14 +11,11 @@ internal class Program
World world = new World();
Window window = new Window(sizeX, sizeY, title);
Player player = new Player(world, Vector3.Zero);
window.Player = player;
Console.WriteLine("Generating map...");
int worldSizeX = 32;
int worldSizeY = 32;
int worldSizeX = 8;
int worldSizeY = 8;
float maxI = worldSizeX * worldSizeY;
int i = 0;
@@ -45,6 +42,12 @@ internal class Program
Renderer.SetWorld(world);
Vector3 startPos = new Vector3(15, 64, 15);
Player player = new Player(startPos, world);
window.Update += player.Tick;
window.Update += player.Update;
window.Run();
}
}