-danse de la pluie-

This commit is contained in:
MarcEricMartel 2023-11-24 14:36:55 -05:00
parent 3043b1ff6b
commit e8d456cc09

View File

@ -1241,12 +1241,6 @@ void Engine::Render(float elapsedTime) {
gameTime += elapsedTime * 10;
for (auto& [key, player] : m_players) {
RemotePlayer* rt = (RemotePlayer*)player;
rt->Render(m_animeAtlas, m_shader01, all, elapsedTime);
m_otherplayerpos = rt->GetPosition();
}
//Vector3f dance = Vector3f(sin(gameTime), 0, cos(-gameTime));
//dance.Normalize();
//m_remotePlayer.ApplyPhysics(dance, &m_world, elapsedTime);
@ -1347,7 +1341,14 @@ void Engine::Render(float elapsedTime) {
}
}
lsPck.clear();
for (auto& [key, player] : m_players) {
RemotePlayer* rt = (RemotePlayer*)player;
rt->Render(m_animeAtlas, m_shader01, all, elapsedTime);
m_otherplayerpos = rt->GetPosition();
}
}
}
else if (m_gamestate == GameState::MAIN_MENU || m_gamestate == GameState::OPTIONS)
{