Spawn dans le milieu d'un bloc au lieu de dans le coin.
This commit is contained in:
parent
80be6575a4
commit
31b41f28f0
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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];
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user