This commit is contained in:
MarcEricMartel 2023-11-24 13:05:17 -05:00
parent ce2d03c354
commit d7bd36d134
2 changed files with 3 additions and 1 deletions

View File

@ -868,7 +868,7 @@ void Engine::DisplayInfo(float elapsedTime, BlockType bloc) {
fPosY = fPosYJump;
fPosY -= charSize;
ss << " Velocity : " << m_remotePlayer.GetVelocity();
ss << " Velocity : " << m_otherplayerpos;
PrintText(fPosX, fPosY, ss.str());
ss.str("");
fPosY -= charSize;
@ -1244,6 +1244,7 @@ void Engine::Render(float elapsedTime) {
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));

View File

@ -117,6 +117,7 @@ private:
Texture PauseBGTexture;
Texture SplachScreenTexture;
Vector3f m_otherplayerpos = Vector3f(0, 0, 0);
float m_scale;
float m_time = 0;