TADAM!
This commit is contained in:
@@ -110,9 +110,6 @@ void Engine::DrawHud(float elapsedTime) {
|
||||
ss << " Rendered Chunks : " << m_renderCount;
|
||||
PrintText(10, Height() - 35, ss.str());
|
||||
ss.str("");
|
||||
ss << " Bad Hits on Chunks : " << m_badHitCount;
|
||||
PrintText(10, Height() - 45, ss.str());
|
||||
ss.str("");
|
||||
ss << " Velocity : " << m_player.GetVelocity(); // IMPORTANT : on utilise l <20> operateur << pour afficher la position
|
||||
PrintText(10, 10, ss.str());
|
||||
ss.str("");
|
||||
@@ -121,10 +118,6 @@ void Engine::DrawHud(float elapsedTime) {
|
||||
ss.str("");
|
||||
ss << " Position : " << m_player.GetPosition();
|
||||
PrintText(10, 30, ss.str());
|
||||
ss.str("");
|
||||
ss << " CamPos : " << m_player.GetPOV();
|
||||
PrintText(10, 40, ss.str());
|
||||
// Affichage du crosshair
|
||||
m_textureCrosshair.Bind();
|
||||
static const int crossSize = 32;
|
||||
glLoadIdentity();
|
||||
|
@@ -18,7 +18,6 @@ void Player::TurnTopBottom(float value) {
|
||||
else if (m_rotX < -80) m_rotX = -80;
|
||||
}
|
||||
|
||||
|
||||
Vector3f Player::GetInput(bool front, bool back, bool left, bool right, bool jump, bool dash, float elapsedTime) {
|
||||
|
||||
Vector3f delta = Vector3f(0, 0, 0);
|
||||
|
@@ -303,7 +303,7 @@ void World::RenderWorld(int& rendercount, int& badhitcount, Player& player, Tran
|
||||
if (dist > VIEW_DISTANCE * .5f) {
|
||||
sinus = .00872653549f; // sin(1/2 degr<67>)
|
||||
cosinus = .99996192306; // cos(1/2 degr<67>)
|
||||
echantillons = 120;
|
||||
echantillons = 180;
|
||||
}
|
||||
else if (dist > VIEW_DISTANCE * .5f) {
|
||||
sinus = .01151891831f; // sin(2/3 degr<67>)
|
||||
|
Reference in New Issue
Block a user