Planet progress

This commit is contained in:
Anuken
2021-06-10 20:46:10 -04:00
parent f99b8e35bd
commit 31ebb1d156
8 changed files with 104 additions and 14 deletions

View File

@@ -4,11 +4,16 @@ import arc.graphics.*;
import arc.math.geom.*;
import arc.util.noise.*;
import mindustry.ctype.*;
import mindustry.game.*;
import mindustry.graphics.*;
import mindustry.graphics.g3d.*;
import mindustry.graphics.g3d.PlanetGrid.*;
import mindustry.maps.generators.*;
import mindustry.maps.planet.*;
import mindustry.type.*;
import mindustry.world.meta.*;
import static mindustry.Vars.*;
public class Planets implements ContentList{
public static Planet
@@ -51,14 +56,35 @@ public class Planets implements ContentList{
for(int i = 0; i < 4; i++){
new Planet("gier-" + i, erekir, 0.1f){{
hasAtmosphere = false;
//for testing only!
alwaysUnlocked = true;
updateLighting = false;
sectors.add(new Sector(this, Ptile.empty));
camRadius = 0.43f;
orbitOffset = 0f;
//new SectorPreset(name + "-sector", this, 0){{
//}};
generator = new BlankPlanetGenerator(){
@Override
public void generate(){
pass((x, y) -> {
floor = Blocks.space;
});
Schematics.placeLaunchLoadout(width/2, height/2);
state.rules.environment = Env.space;
}
@Override
public int getSectorSize(Sector sector){
return 300;
}
};
meshLoader = () -> new HexMesh(this, new HexMesher(){
Simplex sim = new Simplex(id);
@Override