DE 🐛
This commit is contained in:
parent
ce2d03c354
commit
d7bd36d134
@ -868,7 +868,7 @@ void Engine::DisplayInfo(float elapsedTime, BlockType bloc) {
|
|||||||
fPosY = fPosYJump;
|
fPosY = fPosYJump;
|
||||||
fPosY -= charSize;
|
fPosY -= charSize;
|
||||||
|
|
||||||
ss << " Velocity : " << m_remotePlayer.GetVelocity();
|
ss << " Velocity : " << m_otherplayerpos;
|
||||||
PrintText(fPosX, fPosY, ss.str());
|
PrintText(fPosX, fPosY, ss.str());
|
||||||
ss.str("");
|
ss.str("");
|
||||||
fPosY -= charSize;
|
fPosY -= charSize;
|
||||||
@ -1244,6 +1244,7 @@ void Engine::Render(float elapsedTime) {
|
|||||||
for (auto& [key, player] : m_players) {
|
for (auto& [key, player] : m_players) {
|
||||||
RemotePlayer* rt = (RemotePlayer*)player;
|
RemotePlayer* rt = (RemotePlayer*)player;
|
||||||
rt->Render(m_animeAtlas, m_shader01, all, elapsedTime);
|
rt->Render(m_animeAtlas, m_shader01, all, elapsedTime);
|
||||||
|
m_otherplayerpos = rt->GetPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Vector3f dance = Vector3f(sin(gameTime), 0, cos(-gameTime));
|
//Vector3f dance = Vector3f(sin(gameTime), 0, cos(-gameTime));
|
||||||
|
@ -117,6 +117,7 @@ private:
|
|||||||
Texture PauseBGTexture;
|
Texture PauseBGTexture;
|
||||||
Texture SplachScreenTexture;
|
Texture SplachScreenTexture;
|
||||||
|
|
||||||
|
Vector3f m_otherplayerpos = Vector3f(0, 0, 0);
|
||||||
|
|
||||||
float m_scale;
|
float m_scale;
|
||||||
float m_time = 0;
|
float m_time = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user