Render other players

This commit is contained in:
MarcEricMartel
2023-11-24 12:58:06 -05:00
parent 2e30995f1b
commit ce2d03c354
2 changed files with 12 additions and 6 deletions

View File

@@ -190,7 +190,7 @@ void Server::Run() {
m_world->BuildWorld();
for (auto& [key, conn] : m_players) { // Creation des instances de joueurs et premier sync.
conn->player = std::make_unique<Player>(Vector3f(8.5f, CHUNK_SIZE_Y + 1.8f, 8.5f));
conn->player = std::make_unique<Player>(Vector3f(128.5f, CHUNK_SIZE_Y + 1.8f, 128.5f));
Sync sync;
sync.position = conn->player->GetPosition();
sync.hp = conn->player->GetHP();