private void SetupPlayerSpawns(TiledObjectGroup mapObjects) { _playerSpawner = new PlayerSpawner(); foreach (var spawnObject in mapObjects.objectsWithName(TiledObjects.PlayerSpawn)) { _playerSpawner.AddLocation("player_spawner" + spawnObject.id, spawnObject.x + spawnObject.height / 2, spawnObject.y + spawnObject.height / 2); } }