Browse Source

Make mountain more abrupt

DricomDragon 4 years ago
parent
commit
ab9c820778
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main.cpp

+ 2 - 2
main.cpp

@@ -90,10 +90,10 @@ int main()
 			world[j][i][WATER] = waterLevel;
 
 	// Top mountain line
-	const float mountainLevel = 1.0f;
+	const float mountainLevel = 10.0f;
 	for (int j(0); j < HEIGHT; j++)
 		for (int i(0); i < WIDTH; i++)
-			world[j][i][MOUNTAIN] = mountainLevel / (1 + j);
+			world[j][i][MOUNTAIN] = mountainLevel / (1 + j) / (1 + j);
 
 	// [2.5] Surface containers
 	SDL_Surface* tileSet[BLOC_TOTAL] = {water, mountain, grass, desert};