Asteroid progress
This commit is contained in:
@@ -7,7 +7,6 @@ import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.game.*;
|
||||
import mindustry.graphics.*;
|
||||
import mindustry.graphics.g3d.*;
|
||||
import mindustry.graphics.g3d.PlanetGrid.*;
|
||||
import mindustry.maps.generators.*;
|
||||
@@ -51,19 +50,23 @@ public class Planets implements ContentList{
|
||||
atmosphereRadIn = 0.02f;
|
||||
atmosphereRadOut = 0.3f;
|
||||
tidalLock = true;
|
||||
orbitSpacing = 0.5f;
|
||||
totalRadius += 2.4f;
|
||||
orbitSpacing = 0.45f;
|
||||
totalRadius += 2.6f;
|
||||
}};
|
||||
|
||||
float[] offsets = {40, 0, 0, 20};
|
||||
for(int i = 0; i < 4; i++){
|
||||
new Planet("gier-" + i, erekir, 0.1f){{
|
||||
int fi = i;
|
||||
new Planet("gier-" + i, erekir, 0.12f){{
|
||||
hasAtmosphere = false;
|
||||
//for testing only!
|
||||
alwaysUnlocked = true;
|
||||
updateLighting = false;
|
||||
sectors.add(new Sector(this, Ptile.empty));
|
||||
camRadius = 0.43f;
|
||||
orbitOffset = 0f;
|
||||
camRadius = 0.68f;
|
||||
minZoom = 0.6f;
|
||||
drawOrbit = false;
|
||||
orbitOffset = offsets[fi];
|
||||
|
||||
//new SectorPreset(name + "-sector", this, 0){{
|
||||
|
||||
@@ -89,12 +92,14 @@ public class Planets implements ContentList{
|
||||
|
||||
meshLoader = () -> {
|
||||
Seq<GenericMesh> meshes = new Seq<>();
|
||||
Color color = Color.valueOf("57504b");
|
||||
Rand rand = new Rand(2);
|
||||
|
||||
meshes.add(new NoiseMesh(this, 0, 2, Pal.gray, radius, 2, 0.55f, 0.45f, 14f));
|
||||
int am = Mathf.random(3, 6);
|
||||
meshes.add(new NoiseMesh(this, 0, 2, color, radius, 2, 0.55f, 0.45f, 14f));
|
||||
int am = rand.random(3, 7);
|
||||
|
||||
for(int j = 0; j < am; j++){
|
||||
meshes.add(new MatMesh(new NoiseMesh(this, j + 1, 1, Pal.gray, 0.025f + Mathf.random(0.046f), 2, 0.6f, 0.38f, 20f), new Mat3D().setToTranslation(Tmp.v31.setToRandomDirection().setLength(Mathf.random(0.3f, 1.3f)))));
|
||||
meshes.add(new MatMesh(new NoiseMesh(this, j + 1, 1, color, 0.022f + rand.random(0.039f), 2, 0.6f, 0.38f, 20f), new Mat3D().setToTranslation(Tmp.v31.setToRandomDirection(rand).setLength(rand.random(0.44f, 1.4f)))));
|
||||
}
|
||||
|
||||
return new MultiMesh(meshes.toArray(GenericMesh.class));
|
||||
|
||||
Reference in New Issue
Block a user