survivors: spawning player in the middle of the window

This commit is contained in:
Sheldan
2025-09-05 22:34:06 +02:00
parent 7214a64b77
commit 007d2568b3

View File

@@ -103,7 +103,7 @@ docReady(function () {
ctx = canvas.getContext("2d");
config = new Config();
let player = Player.generatePlayer();
let player = Player.generatePlayer(new Vector(window.innerWidth /2, window.innerHeight / 2));
world = new World(player, ctx, new Vector(window.innerWidth, window.innerHeight));
state = new WorldState();