diff --git a/build.gradle b/build.gradle index 6b6b281388..6ea0740d35 100644 --- a/build.gradle +++ b/build.gradle @@ -301,6 +301,7 @@ project(":tools"){ compile arcModule("natives:natives-desktop") compile arcModule("natives:natives-freetype-desktop") + compile arcModule("natives:natives-box2d-desktop") compile arcModule("backends:backend-headless") compile "org.reflections:reflections:0.9.12" diff --git a/core/assets/planets/TODO.dat b/core/assets/planets/TODO.dat index 0c6f13e210..bf5839b3cb 100644 Binary files a/core/assets/planets/TODO.dat and b/core/assets/planets/TODO.dat differ diff --git a/core/src/mindustry/maps/planet/TODOPlanetGenerator.java b/core/src/mindustry/maps/planet/TODOPlanetGenerator.java index d3f218e8d0..aff8c5ded9 100644 --- a/core/src/mindustry/maps/planet/TODOPlanetGenerator.java +++ b/core/src/mindustry/maps/planet/TODOPlanetGenerator.java @@ -16,6 +16,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{ Simplex noise = new Simplex(); RidgedPerlin rid = new RidgedPerlin(1, 2); float scl = 5f; + float waterOffset = 0.07f; //TODO generate array from planet image later Block[][] arr = { @@ -43,7 +44,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{ float rawHeight(Vec3 position){ position = Tmp.v33.set(position).scl(scl); - return Mathf.pow((float)noise.octaveNoise3D(7, 0.48f, 1f/3f, position.x, position.y, position.z), 2.3f) + 0.05f; + return (Mathf.pow((float)noise.octaveNoise3D(7, 0.48f, 1f/3f, position.x, position.y, position.z), 2.3f) + waterOffset) / (1f + waterOffset); } @Override