Explorar o código

Make the sea flat

Yep. Level is uniform.
DricomDragon %!s(int64=4) %!d(string=hai) anos
pai
achega
c97f482d76
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      main.cpp

+ 2 - 2
main.cpp

@@ -84,10 +84,10 @@ int main()
 				world[j][i][t] = 0.0f;
 
 	// Basic water
-	const float waterLevel = 1.0f;
+	const float waterLevel = 0.05f;
 	for (int j(0); j < HEIGHT; j++)
 		for (int i(0); i < WIDTH; i++)
-			world[j][i][WATER] = waterLevel / (HEIGHT - j);
+			world[j][i][WATER] = waterLevel;
 
 	// Top mountain line
 	const float mountainLevel = 1.0f;