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