Spawn is now based on spawn location.

linux_template
sigonasr2 2 years ago
parent 20c5ce9c5c
commit 926ee37651
  1. 4
      Faceball2030/assets/map/map1.map
  2. 4
      Faceball2030/main.cpp

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

@ -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);
}

Loading…
Cancel
Save