Spawn dans le milieu d'un bloc au lieu de dans le coin.

This commit is contained in:
MarcEricMartel 2023-09-04 13:30:42 -04:00
parent 80be6575a4
commit 31b41f28f0
3 changed files with 3 additions and 3 deletions

View File

@ -273,7 +273,7 @@ void Engine::Render(float elapsedTime) {
fell = true;
}
else if (m_player.GetPosition().y < -20.f) {
m_player = Player(Vector3f(0, CHUNK_SIZE_Y + 1.8f, 0)); // Respawn si le bonho- joueur tombe en bas du monde.
m_player = Player(Vector3f(.5f, CHUNK_SIZE_Y + 1.8f, .5f)); // Respawn si le bonho- joueur tombe en bas du monde.
fell = false;
}
}

View File

@ -57,7 +57,7 @@ private:
irrklang::ISound* m_powpow;
irrklang::ISound* m_scream;
Player m_player = Player(Vector3f(0, CHUNK_SIZE_Y + 1.8f, 0));
Player m_player = Player(Vector3f(.5f, CHUNK_SIZE_Y + 1.8f, .5f));
Bullet* m_bullets[MAX_BULLETS];

View File

@ -5,5 +5,5 @@
int main() {
Engine engine;
engine.SetMaxFps(60);
engine.Start("Syndicat Quebecois de la Construction Simulator 2023", 1920, 1080, false);
engine.Start("Syndicat Quebecois de la Construction Simulator 2023", 640, 480, false);
}