Spawn is now based on spawn location.

This commit is contained in:
sigonasr2 2023-04-16 18:43:39 -05:00
parent 20c5ce9c5c
commit 926ee37651
2 changed files with 6 additions and 2 deletions

View File

@ -25,8 +25,8 @@
8202
8198
8195
16662
8207
278
24591
8195
8202
8202

View File

@ -139,6 +139,10 @@ void FaceBall::LoadLevel(int level)
if (id == EXIT) {
exitCoords = { x,y };
}
if (id == START) {
player.UpdatePos({ x+0.5f,0.3,y+0.5f });
fYaw = (int(mapData[y][x].facingDir) - 1) * PI / 2;
}
}
map.push_back(row);
}